1. 06 Jan, 2017 1 commit
    • Ian Hickson's avatar
      Add a toString to Simulation (#7364) · 79c8e5c7
      Ian Hickson authored
      Also, make hasOneLineDescription more discerning.
      Also, add a test for hasOneLineDescription.
      Also, add a test for GravitySimulation, to test the toString.
      79c8e5c7
  2. 05 Jan, 2017 1 commit
    • Ian Hickson's avatar
      moreOrLessEquals matcher for floating point numbers (#7358) · e08c3c3b
      Ian Hickson authored
      ```dart
      expect(x, moreOrLessEquals(0.0));
      ```
      
      ...for those cases where `x` might be 1e-11 or whatever.
      
      Also, be more resilient when dumping the tree from inside the test framework.
      Also, add an assert that helped me debug something the other day.
      e08c3c3b