Skip to content
Snippets Groups Projects
Select Git revision
  • b37c71b1351d502639ba20f973f3e98eb169665b
  • main default protected
  • correction_video
  • going_further
  • ImprovedMouseInteraction
  • final2023
  • template
  • ModifGUI
8 results

Simulation.java

Blame
  • Forked from YAGOUBI Rim / Game of life Template
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    PrimesTest.java 568 B
    package fr.univamu.progav.td1;
    
    import org.junit.jupiter.api.Test;
    
    import java.util.List;
    
    import static org.junit.jupiter.api.Assertions.*;
    
    class PrimesTest {
    
      public static final List<Integer> PRIMES = List.of(2,
        3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47,
        53, 59, 61, 67, 71, 73, 79, 83, 89, 97
      );
    
      @Test
      void primes() {
        List<Integer> primesTo100 = Primes.primes(100);
        assertEquals(PRIMES, primesTo100);
      }
    
      void includesBound() {
        List<Integer> primesTo83 = Primes.primes(83);
        assertTrue(primesTo83.contains(83));
      }
    }