Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs2-23wi
project05
Commits
847a2b7d
Commit
847a2b7d
authored
2 years ago
by
Snigdha Saha
Browse files
Options
Download
Email Patches
Plain Diff
updated hint to excessive allocation test for 'get'
parent
3c2a0681
Pipeline
#77455
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/edu/caltech/cs2/datastructures/MoveToFrontDictionaryTests.java
+1
-0
...altech/cs2/datastructures/MoveToFrontDictionaryTests.java
with
1 addition
and
0 deletions
+1
-0
tests/edu/caltech/cs2/datastructures/MoveToFrontDictionaryTests.java
View file @
847a2b7d
...
@@ -170,6 +170,7 @@ public class MoveToFrontDictionaryTests extends IDictionaryNGramTests {
...
@@ -170,6 +170,7 @@ public class MoveToFrontDictionaryTests extends IDictionaryNGramTests {
@DisplayName
(
"Check for excessive node allocation in get"
)
@DisplayName
(
"Check for excessive node allocation in get"
)
@TestDescription
(
"This test checks that no extra nodes are allocated in the get() method"
)
@TestDescription
(
"This test checks that no extra nodes are allocated in the get() method"
)
@DependsOn
({
"put"
,
"get"
})
@DependsOn
({
"put"
,
"get"
})
@TestHint
(
"get should not be affecting the dictionary in any way; it should simply find and return a value."
)
@Test
@Test
public
void
testForExcessiveNodeAllocationGet
()
{
public
void
testForExcessiveNodeAllocationGet
()
{
NewNode
.
MoveToFrontDictionary_NUM_CALLS
=
0
;
NewNode
.
MoveToFrontDictionary_NUM_CALLS
=
0
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help