Assignment 1 - Tests - הבודק

Assignment 1 - Tests

Tests provided by Aliyav

Look/Compare with original tests .txt (bottom of page) if a problem occurs

EX1_1_1:

test 1

input

-3

output

false

test 2

input

1171

output

true

test 3

input

2417

output

true

test 4

input

1

output

false

EX1_1_2:

test 5

input

n=35

output

(3,5)
(5,7)
(11,13)
(17,19)
(29,31)

test 6

input

n=29

output

(3,5)
(5,7)
(11,13)
(17,19)

test 7

input

n=98

output

(3,5)
(5,7)
(11,13)
(17,19)
(29,31)
(41,43)
(59,61)
(71,73)

EX1_1_3:

test 8

input

prime_gap(3,255)

output

(2,5)

test 9

input

prime_gap(0,39)

output

(2,2)
(3,3)
(5,5)
(7,7)
(11,11)
(13,13)
(17,17)
(19,19)
(23,23)
(29,29)
(31,31)
(37,37)

test 10

input

prime_gap(194,662)

output

(3,197)
(5,199)
(17,211)
(29,223)
(47,241)
(83,277)
(89,283)
(113,307)
(137,331)
(173,367)
(179,373)
(227,421)
(239,433)
(263,457)
(269,463)
(293,487)
(347,541)
(353,547)
(383,577)
(419,613)
(449,643)
(467,661)

test 11

input

prime_gap(4,78)

output

(3,7)
(7,11)
(13,17)
(19,23)
(37,41)
(43,47)
(67,71)

EX1_2:

test 12

input and output

259X314=81326

test 13

input and output

314X259=81326

test 14

input and output

32X-25=-800

test 15

input and output

11X11=121

test 16

input and output

-5X-8=40

EX1_3:

test 17

input and output

a=3.5 b=-2 c=0 x1=4/7 x2=0

test 18

input and output

a=8 b=153 c=-233 x1=1.41777... x2=-20.4857...

test 19

input and output

a=1 b=-31 c=11 x1=30.641003,x2=0.35899..

test 20

input and output

a=-5 b=11 c=32 x1=3.8586... x2=-1.65862...

test 21

input and output

a=8 b=0 c=-25 x1=1.7677... x2=-1.7677...

test 22

input and output

a=3 b=1 c=1 no solution

EX1_4:

test 23

input and output

1
a=2 b=5 c=13 no solution

test 24

input and output

1
a=71.25 b=9.88 c=-15 x1=0.3947.. x2=-0.53337....

test 25

input and output

1
a=23.34 b=1 c=-88 x1=1.920... x2=-1.9632...

test 26

input and output

1
a=1.3 b=1.6 c=1.2 no solution

test 27

input and output

1
a=2131 b=4257 c=-452 x1=0.1010.. x2=-2.09871..

test 28

input and output

1
a=113 b=0 c=-366 x1=1.7997.. x2=-1.7997..

EX1_5:

test 29

check

a=1 b=2 c=1

test 30

check

a=4 b=-35 c=22

Original Test Txt

EX1_1_1:

            -3, false
            1171, true
	2417 true
	1 false
	EX1_1_2

EX1_1_2:
	n=35
	  (3,5)
                (5,7)
               (11,13)
               (17,19)
               (29,31)

                n=29
                (3,5)
                (5,7)
               (11,13)
               (17,19)


    	   n=98
 	   (3,5)
                 (5,7)
                (11,13)
                (17,19)
               (29,31)
               (41,43)
               (59,61)
              (71,73)


    EX1_1_3:


    prime_gap(3,255)
        (2,5)

    prime_gap(0,39)
        (2,2)
        (3,3)
        (5,5)
        (7,7)
        (11,11)
        (13,13)
        (17,17)
        (19,19)
        (23,23)
        (29,29)
        (31,31)
        (37,37)

    prime_gap(194,662)
        (3,197)
        (5,199)
        (17,211)
        (29,223)
        (47,241)
        (83,277)
        (89,283)
        (113,307)
        (137,331)
        (173,367)
        (179,373)
        (227,421)
        (239,433)
        (263,457)
        (269,463)
        (293,487)
        (347,541)
        (353,547)
        (383,577)
        (419,613)
        (449,643)
        (467,661)

    prime_gap(4,78)
        (3,7)
        (7,11)
        (13,17)
        (19,23)
        (37,41)
        (43,47)
        (67,71)


    EX1_2

    259X314=81326

    314X259=81326

    32X-25=-800

    11X11=121

    -5X-8=40
   
    EX1_3:

    a=3.5 b=-2 c=0 x1=4/7 x2=0

    a=8 b=153 c=-233 x1=1.41777... x2=-20.4857...

    a=1 b=-31 c=11 x1=30.641003,x2=0.35899..

    a=-5 b=11 c=32 x1=3.8586... x2=-1.65862...

    a=8 b=0 c=-25 x1=1.7677... x2=-1.7677...

    a=3 b=1 c=1 no solution

    EX1_4

    1
    a=2 b=5 c=13 no solution

    1
    a=71.25 b=9.88 c=-15 x1=0.3947.. x2=-0.53337....

    1
    a=23.34 b=1 c=-88 x1=1.920... x2=-1.9632...

    1
    a=1.3 b=1.6 c=1.2 no solution

    1
    a=2131 b=4257 c=-452 x1=0.1010.. x2=-2.09871..

    1
    a=113 b=0 c=-366 x1=1.7997.. x2=-1.7997..

    EX1_5:
    a=1 b=2 c=1
    a=4 b=-35 c=22

Last updated