Content-Length: 290050 | pFad | https://github.com/go-python/gpython/commit/debd25bc4e7604a5ccf7b78ecc87440c1e671adf

80 Empty dict · go-python/gpython@debd25b · GitHub
Skip to content

Commit debd25b

Browse files
committed
Empty dict
1 parent 1950ac4 commit debd25b

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

parser/grammar_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ func TestGrammar(t *testing.T) {
3232
{"1234", "eval", "Expression(body=Num(n=1234))"},
3333
{"0x1234", "eval", "Expression(body=Num(n=4660))"},
3434
{"12.34", "eval", "Expression(body=Num(n=12.34))"},
35+
{"{ }", "eval", "Expression(body=Dict(keys=[], values=[]))"},
3536
// END TESTS
3637
} {
3738
Ast, err := ParseString(test.in, test.mode)

parser/make_grammar_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
("1234", "eval"),
2525
("0x1234", "eval"),
2626
("12.34", "eval"),
27+
("{ }", "eval"),
2728
]
2829

2930
def dump(source, mode):

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/go-python/gpython/commit/debd25bc4e7604a5ccf7b78ecc87440c1e671adf

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy