Skip to content

GitLab

  • Menu
    • Projects Groups Snippets
      Help
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • P project03
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • cs2-22wi
  • project03
  • Merge requests
  • !2

An error occurred while fetching the assigned milestone of the selected merge_request.
The source project of this merge request has been removed.
Closed
Created 2 years ago by Sarah Acadia Dunbar@sdunbarDeveloper
  • Report abuse
Report abuse

B tests desc fix

  • Overview 0
  • Changes 1
  • Adam Blank @blank approved this merge request 2 years ago

    approved this merge request

  • Adam Blank @blank closed 2 years ago

    closed

  • You're only seeing other activity in the feed. To add a comment, switch to one of the following options.
Please register or sign in to reply
Compare
  • master (base)

and
  • latest version
    fd3aaaf4
    2 commits, 2 years ago

1 file
+ 54
- 1

    Preferences

    File browser
    Compare changes
tests/edu/caltech/cs2/datastructures/CircularArrayFixedSizeQueueTests.java
+ 54
- 1
  • View file @ fd3aaaf4


Show all unchanged lines Show 20 lines
public ICollection<Object> newCollection() {
public ICollection<Object> newCollection() {
return Reflection.newInstance(circFixedSizeQueueConstructor, 100000);
return Reflection.newInstance(circFixedSizeQueueConstructor, 100000);
}
}
 
 
@Override
 
@Order(collectionTestLevel)
 
@DisplayName("Simple tests of various ICollection functions")
 
@ParameterizedTest(name = "Test add(), size(), isEmpty(), contains(), and clear() on [{arguments}]")
 
@DependsOn({"constructor", "add", "clear", "size", "iterator"})
 
@TestDescription("This test checks the built-in functions we gave you by using your iterator and size methods.")
 
@ValueSource(strings = {
 
"",
 
"1",
 
"0, 1, 2, 3",
 
"5, 4, 3, 2, 1",
 
"8, 3, 5, 7, 4, 3, 12, 12, 1"
 
})
 
public void testCollectionFunctions(String inputs) {
 
ICollectionTests.super.testCollectionFunctions(inputs);
 
}
 
 
@Override
 
@Order(collectionTestLevel)
 
@Test
 
@DisplayName("Test repeated emptying and filling of ICollection with single element")
 
@DependsOn({"constructor", "add", "clear", "size"})
 
@TestDescription("This test repeatedly adds and clears the data structure.")
 
public void testFillEmptyCollection() {
 
ICollectionTests.super.testFillEmptyCollection();
 
}
 
 
@Override
 
@Order(collectionTestLevel)
 
@DisplayName("Stress test for add(...)")
 
@ParameterizedTest(name = "Test add()ing {1} random numbers with seed = {0}")
 
@DependsOn({"constructor", "size", "add", "iterator"})
 
@TestDescription("This test adds a ton of random numbers to your data structure and checks that they're all actually in there.")
 
@CsvSource({
 
"100, 3000", "42, 1000"
 
})
 
public void stressTestAdd(int seed, int size) {
 
ICollectionTests.super.stressTestAdd(seed, size);
 
}
 
 
@Override
 
@Order(collectionTestLevel)
 
@DisplayName("Stress test for contains(...)")
 
@ParameterizedTest(name = "Test contains() with {1} random numbers and seed = {0}")
 
@DependsOn({"constructor", "add", "iterator"})
 
@TestDescription("This test adds a ton of random numbers to your data structure and checks that they're all actually in there.")
 
@CsvSource({
 
"100, 3000", "42, 1000"
 
})
 
public void stressTestContains(int seed, int size) {
 
ICollectionTests.super.stressTestContains(seed, size);
 
}
}
}
@DisplayName("Implementation Tests")
@DisplayName("Implementation Tests")
Show 20 lines Show all unchanged lines Show 20 lines
@Order(toStringTestLevel)
@Order(toStringTestLevel)
@DisplayName("toString() matches java.util.ArrayDeque")
@DisplayName("toString() matches java.util.ArrayDeque")
@DependsOn({"fields", "constructors", "toString", "addBack"})
@DependsOn({"fields", "constructors", "toString", "add"})
@ParameterizedTest(name = "Test toString() on [{arguments}]")
@ParameterizedTest(name = "Test toString() on [{arguments}]")
@ValueSource(strings = {
@ValueSource(strings = {
"0, 1, 2, 3", "5, 4, 3, 2, 1", "8, 3, 5, 7, 4, 3, 12, 12, 1"
"0, 1, 2, 3", "5, 4, 3, 2, 1", "8, 3, 5, 7, 4, 3, 12, 12, 1"
Show 20 lines Show all unchanged lines
0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Milestone
No milestone
None
None
Time tracking
No estimate or time spent
Labels
0
None
0
None
    Assign labels
  • Manage project labels

Lock merge request
Unlocked
0
0 participants
Reference:
Source branch: B_tests_desc_fix

Menu

Projects Groups Snippets
Help