Testfest for homework 5

Test cases are in rows. Programs submitted by pairs are in columns.

In each cell, a check mark indicates that the program passed the test. A cross, that it failed the test. A squiggle, that it passed for some combinations of pretty-printed or one-line output, and rapidly-transmitted vs trickle-fed output, but failed for other combinations.

Pairs are identified by the last four digits of their NUIDs (in the same order as their CCS ids appear in their class repo name). Tests are identified similarly, but with the addition of the test number after the two NUID fragments.

Each cell in each row in the matrix is a hyperlink to the test case inputs and outputs.

Results matrix

Test case 0357-6344 0623-8070 0807 1073-6112 1606-4071 2198-0067 2367 2598-8949 2657-7498 3461-8179 3731-4890 3830-7214 3982-5430 5223-6080 6118-3959 7013-1976 7391-9951 7469-3561 7920-7167 9159-5803 9634-1853
0357-6344-1
∼
✓
×
✓
×
✓
×
✓
✓
×
×
×
×
✓
×
×
×
×
×
✓
✓
0357-6344-11
∼
✓
×
✓
×
✓
×
✓
✓
×
×
✓
×
✓
×
×
×
×
✓
✓
✓
0357-6344-12
∼
✓
×
✓
×
✓
×
✓
✓
×
×
×
×
✓
×
×
×
×
×
✓
✓
0357-6344-13
∼
✓
×
✓
×
✓
×
✓
✓
×
×
×
×
✓
×
×
×
×
×
✓
✓
0357-6344-14
∼
✓
×
✓
×
✓
×
✓
✓
×
×
×
×
✓
×
×
×
×
×
✓
✓
0357-6344-15
∼
✓
×
✓
×
✓
×
✓
✓
×
×
✓
×
×
×
×
×
×
✓
✓
✓
0357-6344-16
∼
✓
×
✓
×
✓
×
✓
✓
×
×
✓
×
×
×
×
×
×
✓
✓
✓
0357-6344-5
∼
✓
×
✓
×
✓
×
✓
×
×
×
×
×
✓
×
×
×
×
×
✓
✓
0357-6344-8
∼
✓
×
✓
×
✓
×
✓
✓
×
×
×
×
×
×
×
×
×
×
✓
✓
0357-6344-9
∼
✓
×
✓
×
✓
×
✓
✓
×
×
✓
×
×
×
×
×
×
✓
✓
✓
0623-8070-1
∼
✓
×
✓
×
✓
×
✓
✓
×
×
×
×
✓
×
×
×
×
×
✓
✓
1073-6112-3
∼
✓
×
✓
×
✓
×
✓
✓
×
×
×
×
✓
×
×
✓
×
×
✓
✓
1073-6112-4
∼
✓
×
✓
×
✓
×
✓
✓
×
×
×
×
✓
×
×
✓
×
×
✓
✓
1073-6112-5
∼
✓
×
✓
×
✓
×
✓
✓
×
×
✓
×
✓
×
×
×
×
✓
✓
✓
2657-7498-1
∼
✓
×
✓
×
✓
×
✓
✓
✓
×
✓
×
✓
✓
×
×
×
✓
✓
✓
2657-7498-10
∼
✓
×
✓
×
✓
×
✓
✓
×
×
×
×
×
×
×
×
×
×
✓
✓
2657-7498-12
∼
✓
×
✓
×
✓
×
✓
✓
×
×
×
×
×
×
×
×
×
×
✓
✓
2657-7498-14
∼
✓
×
✓
×
✓
×
✓
✓
×
×
✓
×
✓
×
×
×
×
✓
✓
✓
2657-7498-2
∼
✓
×
✓
×
✓
×
✓
✓
×
×
×
×
×
×
×
×
×
×
✓
✓
2657-7498-3
∼
✓
×
✓
×
✓
×
✓
✓
×
×
×
×
✓
×
×
×
×
×
✓
✓
2657-7498-4
∼
✓
×
✓
×
✓
×
✓
✓
✓
×
✓
×
×
✓
✓
×
×
✓
✓
✓
2657-7498-5
∼
✓
×
✓
×
✓
×
✓
✓
✓
×
✓
×
✓
✓
✓
×
×
✓
✓
✓
2657-7498-6
∼
✓
×
✓
×
✓
×
✓
✓
✓
×
✓
×
✓
✓
✓
×
×
✓
✓
✓
2657-7498-8
∼
✓
×
✓
×
✓
×
✓
✓
×
×
✓
×
×
×
×
×
×
✓
✓
✓
2657-7498-9
∼
✓
×
✓
×
✓
×
✓
✓
×
×
×
×
✓
×
×
×
×
×
×
✓
9634-1853-1
∼
✓
×
✓
×
✓
×
✓
✓
×
×
×
×
✓
×
×
×
×
×
✓
✓
9634-1853-10
∼
✓
×
✓
×
✓
×
✓
✓
×
×
×
×
✓
×
×
×
×
✓
✓
✓
9634-1853-11
∼
✓
×
✓
×
✓
×
✓
✓
×
×
×
×
✓
×
×
×
×
✓
✓
✓
9634-1853-13
∼
✓
×
✓
×
✓
×
✓
✓
×
×
×
×
✓
×
×
×
×
✓
✓
✓
9634-1853-14
∼
✓
×
✓
×
✓
×
✓
✓
×
×
×
×
×
×
×
×
×
×
✓
✓
9634-1853-18
∼
✓
×
✓
×
✓
×
✓
✓
×
×
×
×
✓
×
×
×
×
×
✓
✓
9634-1853-20
∼
×
×
✓
×
✓
×
✓
✓
×
×
×
×
✓
×
×
×
×
✓
✓
✓
9634-1853-3
∼
✓
×
✓
×
✓
×
✓
✓
×
×
×
×
✓
×
×
×
×
✓
✓
✓
9634-1853-4
∼
✓
×
✓
×
✓
×
✓
✓
×
×
×
×
✓
×
×
×
×
✓
✓
✓
9634-1853-5
∼
✓
×
✓
×
✓
×
✓
✓
×
×
×
×
✓
×
×
×
×
×
✓
✓
9634-1853-7
∼
✓
×
✓
×
✓
×
✓
✓
×
×
×
×
×
×
×
×
×
✓
✓
✓
9634-1853-8
∼
✓
×
✓
×
✓
×
✓
✓
×
×
×
×
×
×
×
×
×
✓
✓
✓
9634-1853-9
∼
✓
×
✓
×
✓
×
✓
✓
×
×
×
×
✓
×
×
×
×
×
✓
✓
matthias-1
∼
✓
×
✓
×
✓
×
✓
✓
×
×
×
×
✓
×
×
×
×
×
✓
✓
matthias-10
∼
✓
×
✓
×
✓
×
✓
✓
×
×
✓
×
✓
×
×
×
×
✓
✓
✓
matthias-11
∼
✓
×
✓
×
✓
×
✓
✓
×
×
✓
×
✓
×
×
✓
×
✓
✓
✓
matthias-12
∼
✓
×
✓
×
✓
×
✓
✓
×
×
×
×
✓
×
×
×
×
×
×
✓
matthias-13
∼
✓
×
✓
×
×
×
×
✓
×
×
×
×
×
×
×
×
×
×
✓
✓
matthias-14
∼
✓
×
✓
×
✓
×
✓
✓
×
×
✓
×
×
×
×
×
×
✓
✓
✓
matthias-2
∼
✓
×
✓
×
✓
×
✓
✓
×
×
✓
×
×
×
×
×
×
✓
✓
✓
matthias-3
∼
✓
×
✓
×
✓
×
✓
✓
×
×
×
×
✓
×
×
×
×
×
✓
✓
matthias-4
∼
✓
×
✓
×
✓
×
✓
✓
×
×
✓
×
×
×
×
×
×
✓
✓
✓
matthias-5
∼
✓
×
✓
×
✓
×
✓
✓
×
×
×
×
✓
×
×
×
×
×
✓
✓
matthias-6
∼
✓
×
✓
×
✓
×
✓
✓
×
×
✓
×
✓
×
×
×
×
✓
✓
✓
matthias-7
∼
✓
×
✓
×
✓
×
✓
✓
×
×
×
×
×
×
×
×
×
×
✓
✓
matthias-8
∼
✓
×
✓
×
×
×
×
✓
×
×
×
×
×
×
×
×
×
×
✓
✓
matthias-9
∼
✓
×
✓
×
✓
×
✓
✓
×
×
✓
×
✓
×
×
×
×
✓
✓
✓

Test cases

0357-6344-1

Input:

[[["food",3], ["body",3], ["population",3], ["traits",[]]], [["food",3], ["body",3], ["population",3], ["traits",["carnivore"]]], false, false]

Output:

true

0357-6344-11

Input:

[[["food",2], ["body",3], ["population",4], ["traits",[]]], [["food",2], ["body",7], ["population",3], ["traits",["carnivore"]]], [["food",2], ["body",3], ["population",4], ["traits",["warning-call"]]], false]

Output:

false

0357-6344-12

Input:

[[["food",2], ["body",3], ["population",4], ["traits",[]]], [["food",2], ["body",7], ["population",3], ["traits",["carnivore", "ambush"]]], false, false]

Output:

true

0357-6344-13

Input:

[[["food",2], ["body",3], ["population",4], ["traits",[]]], [["food",2], ["body",7], ["population",3], ["traits",["carnivore", "ambush"]]], false, [["food",2], ["body",3], ["population",4], ["traits",["warning-call"]]]]

Output:

true

0357-6344-14

Input:

[[["food",2], ["body",3], ["population",4], ["traits",["burrowing"]]], [["food",2], ["body",7], ["population",3], ["traits",["carnivore"]]], false, false]

Output:

true

0357-6344-15

Input:

[[["food",3], ["body",3], ["population",3], ["traits",["burrowing"]]], [["food",2], ["body",7], ["population",3], ["traits",["carnivore"]]], false, false]

Output:

false

0357-6344-16

Input:

[[["food",2], ["body",3], ["population",4], ["traits",["climbing"]]], [["food",2], ["body",7], ["population",3], ["traits",["carnivore"]]], false, false]

Output:

false

0357-6344-5

Input:

[[["food",1], ["body",3], ["population",5], ["traits",["symbiosis"]]], [["food",2], ["body",7], ["population",3], ["traits",["carnivore"]]], [["food",2], ["body",5], ["population",5], ["traits",[]]], false]

Output:

true

0357-6344-8

Input:

[[["food",1], ["body",3], ["population",4], ["traits",["herding"]]], [["food",2], ["body",4], ["population",5], ["traits",["carnivore"]]], false, false]

Output:

true

0357-6344-9

Input:

[[["food",1], ["body",3], ["population",4], ["traits",["herding"]]], [["food",2], ["body",7], ["population",3], ["traits",["carnivore"]]], false, false]

Output:

false

0623-8070-1

Input:

[
  [["food", 1], ["body", 0], ["population", 1], ["traits", []]],
  [["food", 1], ["body", 0], ["population", 1], ["traits", ["carnivore"]]],
  false,
  false
]

Output:

true

1073-6112-3

Input:

[
	[
		["food", 1],
		["body", 2],
		["population", 3],
		["traits", []]
	],
	[
		["food", 1],
		["body", 2],
		["population", 3],
		["traits", ["carnivore"]]
	],
	[
		["food", 1],
		["body", 2],
		["population", 3],
		["traits", []]
	],
	[
		["food", 1],
		["body", 2],
		["population", 3],
		["traits", []]
	]
]

Output:

true

1073-6112-4

Input:

[
	[
		["food", 1],
		["body", 2],
		["population", 3],
		["traits", ["climbing"]]
	],
	[
		["food", 1],
		["body", 2],
		["population", 3],
		["traits", ["carnivore", "climbing"]]
	],
	[
		["food", 1],
		["body", 2],
		["population", 3],
		["traits", []]
	],
	[
		["food", 1],
		["body", 2],
		["population", 3],
		["traits", []]
	]
]

Output:

true

1073-6112-5

Input:

[
	[
		["food", 1],
		["body", 2],
		["population", 3],
		["traits", ["cooperation", "fertile", "ambush"]]
	],
	[
		["food", 1],
		["body", 2],
		["population", 3],
		["traits", ["carnivore"]]
	],
	false,
	[
		["food", 1],
		["body", 2],
		["population", 3],
		["traits", ["warning-call", "horns"]]
	]
]

Output:

false

2657-7498-1

Input:

[ [ ["food",3], ["body",3], ["population",3], ["traits",["symbiosis", "carnivore"]] ], [ ["food",3], ["body",3], ["population",3], ["traits",["symbiosis", "carnivore"]] ], false, false ]

Output:

true

2657-7498-10

Input:

[ [ ["food",3], ["body",3], ["population",3], ["traits",["hard-shell", "carnivore"]] ], [ ["food",3], ["body",3], ["population",3], ["traits",["ambush", "carnivore"]] ], false, false ]

Output:

false

2657-7498-12

Input:

[ [ ["food",3], ["body",4], ["population",3], ["traits",["hard-shell", "carnivore"]] ], [ ["food",3], ["body",7], ["population",3], ["traits",["ambush", "carnivore"]] ], false, false ]

Output:

false

2657-7498-14

Input:

[ [ ["food",3], ["body",4], ["population",3], ["traits",[]] ], [ ["food",1], ["body",7], ["population",1], ["traits",["carnivore"]] ], [ ["food",1], ["body",7], ["population",1], ["traits",["warning-call"]] ], false ]

Output:

false

2657-7498-2

Input:

[ [ ["food",3], ["body",3], ["population",3], ["traits",["burrowing", "carnivore"]] ], [ ["food",3], ["body",3], ["population",3], ["traits",["symbiosis", "carnivore"]] ], false, false ]

Output:

false

2657-7498-3

Input:

[ [ ["food",3], ["body",3], ["population",3], ["traits",["ambush", "carnivore"]] ], [ ["food",3], ["body",3], ["population",3], ["traits",["symbiosis", "carnivore"]] ], [ ["food",3], ["body",3], ["population",3], ["traits",["warning-call", "carnivore"]] ], false ]

Output:

false

2657-7498-4

Input:

[ [ ["food",3], ["body",3], ["population",3], ["traits",["ambush", "carnivore"]] ], [ ["food",3], ["body",3], ["population",3], ["traits",["ambush", "carnivore"]] ], [ ["food",3], ["body",3], ["population",3], ["traits",["warning-call", "carnivore"]] ], false ]

Output:

true

2657-7498-5

Input:

[ [ ["food",3], ["body",3], ["population",3], ["traits",["ambush", "carnivore"]] ], [ ["food",3], ["body",3], ["population",3], ["traits",["ambush", "carnivore"]] ], [ ["food",3], ["body",3], ["population",3], ["traits",[]] ], false ]

Output:

true

2657-7498-6

Input:

[ [ ["food",3], ["body",3], ["population",3], ["traits",["symbiosis", "carnivore"]] ], [ ["food",3], ["body",3], ["population",3], ["traits",["ambush", "carnivore"]] ], [ ["food",3], ["body",3], ["population",3], ["traits",[]] ], false ]

Output:

true

2657-7498-8

Input:

[ [ ["food",3], ["body",3], ["population",3], ["traits",["climbing"]] ], [ ["food",3], ["body",3], ["population",3], ["traits",["ambush", "carnivore"]] ], false, [ ["food",3], ["body",4], ["population",3], ["traits",[]] ] ]

Output:

false

2657-7498-9

Input:

[ [ ["food",3], ["body",3], ["population",3], ["traits",["climbing"]] ], [ ["food",3], ["body",3], ["population",3], ["traits",["climbing", "carnivore"]] ], false, [ ["food",3], ["body",4], ["population",3], ["traits",[]] ] ]

Output:

true

9634-1853-1

Input:

[[["food", 0], ["body", 0], ["population", 1], ["traits", []]], [["food", 0], ["body", 0], ["population", 1], ["traits", ["carnivore"]]], false, false]

Output:

true

9634-1853-10

Input:

[[["food", 0], ["body", 0], ["population", 1], ["traits", ["hard-shell"]]], [["food", 0], ["body", 0], ["population", 1], ["traits", ["carnivore"]]], false, false]

Output:

false

9634-1853-11

Input:

[[["food", 0], ["body", 0], ["population", 1], ["traits", ["hard-shell"]]], [["food", 0], ["body", 3], ["population", 1], ["traits", ["carnivore"]]], false, false]

Output:

false

9634-1853-13

Input:

[[["food", 0], ["body", 0], ["population", 1], ["traits", ["herding"]]], [["food", 0], ["body", 0], ["population", 1], ["traits", ["carnivore"]]], false, false]

Output:

false

9634-1853-14

Input:

[[["food", 0], ["body", 0], ["population", 1], ["traits", ["herding"]]], [["food", 0], ["body", 0], ["population", 2], ["traits", ["carnivore"]]], false, false]

Output:

true

9634-1853-18

Input:

[[["food", 0], ["body", 0], ["population", 1], ["traits", ["symbiosis"]]], [["food", 0], ["body", 0], ["population", 1], ["traits", ["carnivore"]]], false, [["food", 0], ["body", 0], ["population", 1], ["traits", []]]]

Output:

true

9634-1853-20

Input:

[[["food", 0], ["body", 0], ["population", 1], ["traits", ["hard-shell"]]], [["food", 0], ["body", 0], ["population", 3], ["traits", ["carnivore", "pack-hunting"]]], false, false]

Output:

false

9634-1853-3

Input:

[[["food", 0], ["body", 0], ["population", 1], ["traits", []]], [["food", 0], ["body", 0], ["population", 1], ["traits", ["carnivore"]]], [["food", 0], ["body", 0], ["population", 1], ["traits", ["warning-call"]]], false]

Output:

false

9634-1853-4

Input:

[[["food", 0], ["body", 0], ["population", 1], ["traits", []]], [["food", 0], ["body", 0], ["population", 1], ["traits", ["carnivore"]]], false, [["food", 0], ["body", 0], ["population", 1], ["traits", ["warning-call"]]]]

Output:

false

9634-1853-5

Input:

[[["food", 0], ["body", 0], ["population", 1], ["traits", []]], [["food", 0], ["body", 0], ["population", 1], ["traits", ["carnivore", "ambush"]]], [["food", 0], ["body", 0], ["population", 1], ["traits", ["warning-call"]]], false]

Output:

true

9634-1853-7

Input:

[[["food", 6], ["body", 0], ["population", 6], ["traits", ["burrowing"]]], [["food", 0], ["body", 0], ["population", 1], ["traits", ["carnivore"]]], false, false]

Output:

false

9634-1853-8

Input:

[[["food", 0], ["body", 0], ["population", 1], ["traits", ["climbing"]]], [["food", 0], ["body", 0], ["population", 1], ["traits", ["carnivore"]]], false, false]

Output:

false

9634-1853-9

Input:

[[["food", 0], ["body", 0], ["population", 1], ["traits", ["climbing"]]], [["food", 0], ["body", 0], ["population", 1], ["traits", ["carnivore", "climbing"]]], false, false]

Output:

true

matthias-1

Input:

[[["food",3],["body",1],["population",4],["traits",[]]],[["food",2],["body",3],["population",4],["traits",["carnivore"]]],false,false]

Output:

true

matthias-10

Input:

[[["food",3],["body",1],["population",4],["traits",[]]],[["food",2],["body",3],["population",4],["traits",["carnivore"]]],false,[["food",2],["body",2],["population",3],["traits",["warning-call"]]]]

Output:

false

matthias-11

Input:

[[["food",3],["body",1],["population",4],["traits",[]]],[["food",2],["body",3],["population",4],["traits",["carnivore"]]],[["food",2],["body",2],["population",3],["traits",["warning-call"]]],[["food",2],["body",2],["population",3],["traits",["warning-call"]]]]

Output:

false

matthias-12

Input:

[[["food",3],["body",1],["population",4],["traits",[]]],[["food",2],["body",3],["population",4],["traits",["carnivore","ambush"]]],false,[["food",2],["body",2],["population",3],["traits",["warning-call"]]]]

Output:

true

matthias-13

Input:

[[["food",2],["body",2],["population",2],["traits",["hard-shell"]]],[["food",2],["body",3],["population",4],["traits",["carnivore","ambush","pack-hunting"]]],[["food",2],["body",2],["population",3],["traits",["warning-call"]]],false]

Output:

true

matthias-14

Input:

[[["food",2],["body",2],["population",2],["traits",["hard-shell","climbing"]]],[["food",2],["body",3],["population",4],["traits",["carnivore","ambush","pack-hunting"]]],[["food",2],["body",2],["population",3],["traits",["warning-call"]]],false]

Output:

false

matthias-2

Input:

[[["food",1],["body",1],["population",1],["traits",["burrowing"]]],[["food",2],["body",3],["population",4],["traits",["carnivore"]]],false,false]

Output:

false

matthias-3

Input:

[[["food",3],["body",1],["population",4],["traits",["burrowing"]]],[["food",2],["body",3],["population",4],["traits",["carnivore"]]],false,false]

Output:

true

matthias-4

Input:

[[["food",3],["body",1],["population",4],["traits",["climbing"]]],[["food",2],["body",3],["population",4],["traits",["carnivore"]]],false,false]

Output:

false

matthias-5

Input:

[[["food",3],["body",1],["population",4],["traits",["climbing"]]],[["food",2],["body",3],["population",4],["traits",["carnivore","climbing"]]],false,false]

Output:

true

matthias-6

Input:

[[["food",2],["body",2],["population",3],["traits",["hard-shell"]]],[["food",2],["body",3],["population",4],["traits",["carnivore"]]],false,false]

Output:

false

matthias-7

Input:

[[["food",2],["body",2],["population",3],["traits",["hard-shell"]]],[["food",2],["body",7],["population",3],["traits",["carnivore"]]],false,false]

Output:

true

matthias-8

Input:

[[["food",2],["body",2],["population",3],["traits",["hard-shell"]]],[["food",2],["body",3],["population",4],["traits",["carnivore","pack-hunting"]]],false,false]

Output:

true

matthias-9

Input:

[[["food",3],["body",1],["population",4],["traits",[]]],[["food",2],["body",3],["population",4],["traits",["carnivore"]]],[["food",2],["body",2],["population",3],["traits",["warning-call"]]],false]

Output:

false