@@ -39,7 +39,7 @@ def test_piped_input() -> None:
3939
4040 assert len (ret ) == 1
4141 assert ret [0 ].value_ () == 0
42- assert ret [0 ].type_ == MOCK_PROGRAM .type ('void *' )
42+ assert sdb . type_equals ( ret [0 ].type_ , MOCK_PROGRAM .type ('void *' ) )
4343
4444
4545def test_single_arg_hex () -> None :
@@ -49,7 +49,7 @@ def test_single_arg_hex() -> None:
4949
5050 assert len (ret ) == 1
5151 assert ret [0 ].value_ () == 0
52- assert ret [0 ].type_ == MOCK_PROGRAM .type ('void *' )
52+ assert sdb . type_equals ( ret [0 ].type_ , MOCK_PROGRAM .type ('void *' ) )
5353
5454
5555def test_single_arg_decimal () -> None :
@@ -59,7 +59,7 @@ def test_single_arg_decimal() -> None:
5959
6060 assert len (ret ) == 1
6161 assert ret [0 ].value_ () == 0
62- assert ret [0 ].type_ == MOCK_PROGRAM .type ('void *' )
62+ assert sdb . type_equals ( ret [0 ].type_ , MOCK_PROGRAM .type ('void *' ) )
6363
6464
6565def test_bogus_arg () -> None :
@@ -79,7 +79,7 @@ def test_test_piped_int() -> None:
7979
8080 assert len (ret ) == 1
8181 assert ret [0 ].value_ () == 1
82- assert ret [0 ].type_ == MOCK_PROGRAM .type ('int' )
82+ assert sdb . type_equals ( ret [0 ].type_ , MOCK_PROGRAM .type ('int' ) )
8383
8484
8585def test_single_arg () -> None :
@@ -89,7 +89,7 @@ def test_single_arg() -> None:
8989
9090 assert len (ret ) == 1
9191 assert ret [0 ].value_ () == 1
92- assert ret [0 ].type_ == MOCK_PROGRAM .type ('void *' )
92+ assert sdb . type_equals ( ret [0 ].type_ , MOCK_PROGRAM .type ('void *' ) )
9393
9494
9595def test_multiple_piped () -> None :
@@ -103,9 +103,9 @@ def test_multiple_piped() -> None:
103103
104104 assert len (ret ) == 2
105105 assert ret [0 ].value_ () == 0
106- assert ret [0 ].type_ == MOCK_PROGRAM .type ('void *' )
106+ assert sdb . type_equals ( ret [0 ].type_ , MOCK_PROGRAM .type ('void *' ) )
107107 assert ret [1 ].value_ () == 1
108- assert ret [1 ].type_ == MOCK_PROGRAM .type ('int' )
108+ assert sdb . type_equals ( ret [1 ].type_ , MOCK_PROGRAM .type ('int' ) )
109109
110110
111111def test_multiple_args () -> None :
@@ -115,9 +115,9 @@ def test_multiple_args() -> None:
115115
116116 assert len (ret ) == 2
117117 assert ret [0 ].value_ () == 0
118- assert ret [0 ].type_ == MOCK_PROGRAM .type ('void *' )
118+ assert sdb . type_equals ( ret [0 ].type_ , MOCK_PROGRAM .type ('void *' ) )
119119 assert ret [1 ].value_ () == 1
120- assert ret [1 ].type_ == MOCK_PROGRAM .type ('void *' )
120+ assert sdb . type_equals ( ret [1 ].type_ , MOCK_PROGRAM .type ('void *' ) )
121121
122122
123123def test_piped_and_args_combo () -> None :
@@ -131,13 +131,13 @@ def test_piped_and_args_combo() -> None:
131131
132132 assert len (ret ) == 4
133133 assert ret [0 ].value_ () == 0
134- assert ret [0 ].type_ == MOCK_PROGRAM .type ('void *' )
134+ assert sdb . type_equals ( ret [0 ].type_ , MOCK_PROGRAM .type ('void *' ) )
135135 assert ret [1 ].value_ () == 1
136- assert ret [1 ].type_ == MOCK_PROGRAM .type ('int' )
136+ assert sdb . type_equals ( ret [1 ].type_ , MOCK_PROGRAM .type ('int' ) )
137137 assert ret [2 ].value_ () == 0
138- assert ret [2 ].type_ == MOCK_PROGRAM .type ('void *' )
138+ assert sdb . type_equals ( ret [2 ].type_ , MOCK_PROGRAM .type ('void *' ) )
139139 assert ret [3 ].value_ () == 1
140- assert ret [3 ].type_ == MOCK_PROGRAM .type ('void *' )
140+ assert sdb . type_equals ( ret [3 ].type_ , MOCK_PROGRAM .type ('void *' ) )
141141
142142
143143def test_multi_echo_combo () -> None :
@@ -151,12 +151,12 @@ def test_multi_echo_combo() -> None:
151151
152152 assert len (ret ) == 5
153153 assert ret [0 ].value_ () == 0
154- assert ret [0 ].type_ == MOCK_PROGRAM .type ('void *' )
154+ assert sdb . type_equals ( ret [0 ].type_ , MOCK_PROGRAM .type ('void *' ) )
155155 assert ret [1 ].value_ () == 1
156- assert ret [1 ].type_ == MOCK_PROGRAM .type ('int' )
156+ assert sdb . type_equals ( ret [1 ].type_ , MOCK_PROGRAM .type ('int' ) )
157157 assert ret [2 ].value_ () == 2
158- assert ret [2 ].type_ == MOCK_PROGRAM .type ('void *' )
158+ assert sdb . type_equals ( ret [2 ].type_ , MOCK_PROGRAM .type ('void *' ) )
159159 assert ret [3 ].value_ () == 3
160- assert ret [3 ].type_ == MOCK_PROGRAM .type ('void *' )
160+ assert sdb . type_equals ( ret [3 ].type_ , MOCK_PROGRAM .type ('void *' ) )
161161 assert ret [4 ].value_ () == 4
162- assert ret [4 ].type_ == MOCK_PROGRAM .type ('void *' )
162+ assert sdb . type_equals ( ret [4 ].type_ , MOCK_PROGRAM .type ('void *' ) )
0 commit comments