fixed tests
This commit is contained in:
parent
ad2710b6bc
commit
ac19904d15
@ -19,10 +19,10 @@ any number of things together even nested lists and numbers 12345
|
||||
```
|
||||
Name Stmts Miss Cover Missing
|
||||
-------------------------------------
|
||||
glue 14 0 100%
|
||||
glue 13 0 100%
|
||||
tests 24 0 100%
|
||||
-------------------------------------
|
||||
TOTAL 38 0 100%
|
||||
TOTAL 37 0 100%
|
||||
```
|
||||
|
||||
#Protip
|
||||
|
@ -1,6 +1,6 @@
|
||||
Name Stmts Miss Cover Missing
|
||||
-------------------------------------
|
||||
glue 14 0 100%
|
||||
glue 13 0 100%
|
||||
tests 24 0 100%
|
||||
-------------------------------------
|
||||
TOTAL 38 0 100%
|
||||
TOTAL 37 0 100%
|
||||
|
4
glue.py
4
glue.py
@ -21,8 +21,10 @@ def glue(*args, **kwargs):
|
||||
kwargs = collections.OrderedDict(
|
||||
sorted(kwargs.items(), key=lambda t: t[0]))
|
||||
|
||||
|
||||
what_to_glue = list(args)
|
||||
# Ignore all your keys, because you're doing this wrong anyway
|
||||
what_to_glue = list(args).extend([v for k, v in kwargs.iteritems()])
|
||||
what_to_glue.extend([v for k, v in kwargs.iteritems()])
|
||||
|
||||
# flatten crap out of this!
|
||||
what_to_glue = _flatten(what_to_glue)
|
||||
|
Loading…
Reference in New Issue
Block a user