File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ def add_one_float(self, num: i.AllFloats) -> i.AllFloats:
69
69
def replace_first_char (self , text : i .AllText , letter : str ) -> i .AllText :
70
70
if isinstance (text , i .AllText0 ):
71
71
return i .AllText0 (letter )
72
- if isinstance (text , i .AllFloats1 ):
72
+ if isinstance (text , i .AllText1 ):
73
73
return i .AllText1 (letter + text .value [1 :])
74
74
else :
75
75
raise ValueError ("Invalid input value!" )
@@ -111,7 +111,7 @@ def identify_float(self, num: i.AllFloats) -> int:
111
111
def identify_text (self , text : i .AllText ) -> int :
112
112
if isinstance (text , i .AllText0 ):
113
113
return 0
114
- if isinstance (text , i .AllFloats1 ):
114
+ if isinstance (text , i .AllText1 ):
115
115
return 1
116
116
else :
117
117
raise ValueError ("Invalid input value!" )
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ impl exports::Exports for Exports {
138
138
139
139
assert ! ( matches!( identify_duplicated( DuplicatedS32 :: I320 ( 0 ) ) , 0 ) ) ;
140
140
assert ! ( matches!( identify_duplicated( DuplicatedS32 :: I321 ( 0 ) ) , 1 ) ) ;
141
- assert ! ( matches!( identify_duplicated( DuplicatedS32 :: I321 ( 0 ) ) , 2 ) ) ;
141
+ assert ! ( matches!( identify_duplicated( DuplicatedS32 :: I322 ( 0 ) ) , 2 ) ) ;
142
142
143
143
// Distinguishable
144
144
assert ! (
You can’t perform that action at this time.
0 commit comments