Skip to content

Commit ef9c63b

Browse files
author
Hyojun Kang
committed
Fix test has possbility to be failed
nirum-lang#76 (comment)
1 parent f79ad21 commit ef9c63b

File tree

1 file changed

+2
-24
lines changed

1 file changed

+2
-24
lines changed

test/Nirum/Targets/PythonSpec.hs

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -599,10 +599,6 @@ spec = parallel $ do
599599
tT decl "Point(left=3, top=14) != Point(left=4, top=15)"
600600
tT decl "Point(left=3, top=14) != 'foo'"
601601
tT decl "hash(Point(left=3, top=14))"
602-
tT decl [q|hash(Point(left=3, top=14)) ==
603-
hash(Point(left=3, top=14))|]
604-
tT decl [q|hash(Point(left=3, top=14)) !=
605-
hash(Point(left=1, top=592))|]
606602
tT decl [q|Point(left=3, top=14).__nirum_serialize__() ==
607603
{'_type': 'point', 'x': 3, 'top': 14}|]
608604
tT decl [qq|Point.__nirum_deserialize__($payload) ==
@@ -676,16 +672,11 @@ spec = parallel $ do
676672
tT decl "Line.__slots__ == ('length', )"
677673
tT decl [qq|Line(length=3).__nirum_serialize__() == $payload|]
678674
specify "union type" $ do
679-
let wasternNameTag =
675+
let westernNameTag =
680676
Tag "western-name" [ Field "first-name" "text" empty
681677
, Field "middle-name" "text" empty
682678
, Field "last-name" "text" empty
683679
] empty
684-
let wasternNameTag2 =
685-
Tag "western-name2" [ Field "first-name" "text" empty
686-
, Field "middle-name" "text" empty
687-
, Field "last-name" "text" empty
688-
] empty
689680
eastAsianNameTag =
690681
Tag "east-asian-name" [ Field "family-name" "text" empty
691682
, Field "given-name" "text" empty
@@ -694,8 +685,7 @@ spec = parallel $ do
694685
Tag "culture-agnostic-name"
695686
[ Field "fullname" "text" empty ]
696687
empty
697-
tags = [ wasternNameTag
698-
, wasternNameTag2
688+
tags = [ westernNameTag
699689
, eastAsianNameTag
700690
, cultureAgnosticNameTag
701691
]
@@ -748,18 +738,6 @@ spec = parallel $ do
748738
last_name='baz')|]
749739
tT decl [q|hash(WesternName(first_name='foo', middle_name='bar',
750740
last_name='baz'))|]
751-
tT decl [q|hash(WesternName(first_name='foo', middle_name='bar',
752-
last_name='baz')) ==
753-
hash(WesternName(first_name='foo', middle_name='bar',
754-
last_name='baz'))|]
755-
tT decl [q|hash(WesternName(first_name='foo', middle_name='bar',
756-
last_name='baz')) !=
757-
hash(WesternName(first_name='hello', middle_name='bar',
758-
last_name='baz'))|]
759-
tT decl [q|hash(WesternName(first_name='foo', middle_name='bar',
760-
last_name='baz')) !=
761-
hash(WesternName2(first_name='foo', middle_name='bar',
762-
last_name='baz'))|]
763741
tT decl "isinstance(EastAsianName, type)"
764742
tT decl "issubclass(EastAsianName, Name)"
765743
tT decl [q|EastAsianName(family_name='foo',

0 commit comments

Comments
 (0)