Skip to content
Snippets Groups Projects
Select Git revision
  • de1fcffdf138138dd942a40e8f75e2bd9cd71a96
  • main default protected
  • bugfix/fix-routing
  • bugfix/fix-html-and-css
  • bugfix/test
  • feature/add-signup-validation
  • feature/add-update-information-validator
  • feature/add-login-validator
  • feature/add-payment-validator
  • feature/add-admin-view
  • feature/add-orders-html
  • bugfix/fix-html-feedback
  • chore/refacto-code
  • feature/add-update-user-html
  • feature/add-product-html
  • feature/add-card-html
  • feature/add-sign-up-html
  • feature/add-login-html
  • bugfix/fix-pop-up
  • feature/add-routings-configuration
  • feature/add-cards-html
21 results

orders.component.ts

Blame
  • Forked from Shop Sphere / frontend
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    TestTeachingUnitResult.java 745 B
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import org.junit.jupiter.api.Test;
    
    class TestTeachingUnitResult {
      private static TeachingUnitResult twentyAtProg =
              new TeachingUnitResult("Programmation 2", TestGrade.twenty);
      private static TeachingUnitResult zeroAtStructDiscrete =
              new TeachingUnitResult("Structures discrètes", TestGrade.zero);
    
      @Test
      void testGetGrade() {
        assertEquals(TestGrade.twenty, twentyAtProg.getGrade());
        assertEquals(TestGrade.zero, zeroAtStructDiscrete.getGrade());
      }
    
      @Test
      void testToString() {
        assertEquals("Programmation 2 : 20.0/20", twentyAtProg.toString());
        assertEquals("Structures discrètes : 0.0/20", zeroAtStructDiscrete.toString());
      }
    }