@@ -46,20 +46,29 @@ def test_display():
46
46
47
47
def test_scblbl_input ():
48
48
example = {"in" : np .array ([1 ,2 ,3 ,4 ]).astype (np .int32 )}
49
- result = sclbl_input (example )
49
+ result = sclbl_input (example , _verbose = False )
50
50
assert result == '{"input": CAQQBkoQAQAAAAIAAAADAAAABAAAAA==, "type":"pb"}' , "PB output not correct."
51
51
52
52
example = {"x1" : np .array ([1 ,2 ,3 ,4 ]).astype (np .int32 ), "x2" : np .array ([1 ,2 ,3 ,4 ]).astype (np .int32 )}
53
- result = sclbl_input (example )
54
- assert result == '{"input": ["CAQQBkoQAQAAAAIAAAADAAAABAAAAA==","CAQQBkoQAQAAAAIAAAADAAAABAAAAA=="], "type":"pb"}' , "PB output 2 not correct."
53
+ result = sclbl_input (example , _verbose = False )
54
+ assert result == '{"input": ["CAQQBkoQAQAAAAIAAAADAAAABAAAAA==","CAQQBkoQAQAAAAIAAAADAAAABAAAAA=="], "type":"pb"}' ,\
55
+ "PB output 2 not correct. "
55
56
56
- # todo: Do raw tests.
57
+ example = {"in" : np .array ([1 ,2 ,3 ,4 ]).astype (np .int32 )}
58
+ result = sclbl_input (example , "raw" , _verbose = False )
59
+ assert result == '{"input": AQAAAAIAAAADAAAABAAAAA==, "type":"raw"}' , "Raw output not correct."
60
+
61
+ example = {"x1" : np .array ([1 ,2 ,3 ,4 ]).astype (np .int32 ), "x2" : np .array ([1 ,2 ,3 ,4 ]).astype (np .int32 )}
62
+ result = sclbl_input (example , "raw" , _verbose = False )
63
+ assert result == '{"input": ["AQAAAAIAAAADAAAABAAAAA==","AQAAAAIAAAADAAAABAAAAA=="], "type":"raw"}' ,\
64
+ "Raw output 2 not correct. "
57
65
58
66
59
67
def test_list_data_types ():
60
68
test = list_data_types ()
61
69
assert test , "Data types should be listed."
62
70
71
+
63
72
def test_list_operators ():
64
73
test = list_operators ()
65
74
assert test , "Operators should be listed."
0 commit comments