Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
single_recursion_lab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SOFT Core
SOFT 161 and 162
single_recursion_lab
Commits
b18a23ee
Commit
b18a23ee
authored
6 years ago
by
Brady James Garvin
Browse files
Options
Downloads
Patches
Plain Diff
Fixed wrong oracle from copy/paste.
parent
8aa933af
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
test_nim_evaluator.py
+1
-1
1 addition, 1 deletion
test_nim_evaluator.py
with
1 addition
and
1 deletion
test_nim_evaluator.py
+
1
−
1
View file @
b18a23ee
...
@@ -22,7 +22,7 @@ class TestNimEvaluator(TestCase):
...
@@ -22,7 +22,7 @@ class TestNimEvaluator(TestCase):
self
.
assertEqual
(
evaluate
([
1
,
1
]),
Evaluation
.
WIN
)
self
.
assertEqual
(
evaluate
([
1
,
1
]),
Evaluation
.
WIN
)
def
test_pairs_of_equal_heaps_cancel
(
self
):
def
test_pairs_of_equal_heaps_cancel
(
self
):
self
.
assertEqual
(
evaluate
([
1
,
2
,
2
]),
Evaluation
.
WIN
)
self
.
assertEqual
(
evaluate
([
1
,
2
,
2
]),
Evaluation
.
LOSS
)
def
test_three_distinct_heaps_that_cancel
(
self
):
def
test_three_distinct_heaps_that_cancel
(
self
):
self
.
assertEqual
(
evaluate
([
3
,
2
,
1
]),
Evaluation
.
WIN
)
self
.
assertEqual
(
evaluate
([
3
,
2
,
1
]),
Evaluation
.
WIN
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment