mirror of
https://github.com/janet-lang/janet
synced 2025-12-15 13:08:09 +00:00
Add test case for missing struct proto
This commit is contained in:
@@ -213,4 +213,7 @@
|
|||||||
(loop [v :iterate (parser/produce p2)])
|
(loop [v :iterate (parser/produce p2)])
|
||||||
(parser/state p2)
|
(parser/state p2)
|
||||||
|
|
||||||
|
# Check missing struct proto bug.
|
||||||
|
(assert (struct/getproto (struct/with-proto {:a 1} :b 2 :c nil)) "missing struct proto")
|
||||||
|
|
||||||
(end-suite)
|
(end-suite)
|
||||||
|
|||||||
Reference in New Issue
Block a user