File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -402,6 +402,16 @@ def test_mul_and_sum(self):
402
402
qf = qlassf (f , to_compile = COMPILATION_ENABLED , compiler = self .compiler )
403
403
compute_and_compare_results (self , qf )
404
404
405
+ def test_mult_multconst (self ):
406
+ f = "def test(a: Qint2, b: Qint2) -> Qint4:\n \t return (a * b) * 5"
407
+ qf = qlassf (f , compiler = self .compiler , to_compile = COMPILATION_ENABLED )
408
+ compute_and_compare_results (self , qf )
409
+
410
+ def test_mul_const (self ):
411
+ f = "def test(a: Qint2, b: Qint4) -> Qint4:\n \t return (a * 3) + b"
412
+ qf = qlassf (f , compiler = self .compiler , to_compile = COMPILATION_ENABLED )
413
+ compute_and_compare_results (self , qf )
414
+
405
415
# def test_mul4(self):
406
416
# f = "def test(a: Qint4, b: Qint4) -> Qint4: return a * b"
407
417
# qf = qlassf(f, to_compile=COMPILATION_ENABLED, compiler=self.compiler)
You can’t perform that action at this time.
0 commit comments