[GitHub] [commons-rng] cawatson commented on issue #61: RNG-85: Middle Square Weyl Sequence generator

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[GitHub] [commons-rng] cawatson commented on issue #61: RNG-85: Middle Square Weyl Sequence generator

GitBox
cawatson commented on issue #61: RNG-85: Middle Square Weyl Sequence generator
URL: https://github.com/apache/commons-rng/pull/61#issuecomment-523452230
 
 
   I am working on a tool to help partially automate unit testing for developers. I'm hoping you could speak to the validity of the generated assert statements for their corresponding test methods. These all come from the file: commons-rng/commons-rng-core/src/test/java/org/apache/commons/rng/core/source32/MiddleSquareWeylSequenceTest.java
   
   Test method: _testReferenceCode_
   Assert Statement(s): `org.junit.Assert.assertArrayEquals(new` int [ ] { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 }, seed);`
   
   Test method: _testSelfSeeding_
   Assert Statement(s): `org.junit.Assert.assertTrue(((rng.nextInt(` group )) > 0));` , `org.junit.Assert.assertTrue(((rng.nextInt( position )) > 0));`, `org.junit.Assert.assertTrue(((rng.nextInt(` group )) == 0));`
   
   Thank you for your time.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[hidden email]


With regards,
Apache Git Services