Skip to content

Commit

Permalink
fix string comparison in fsharp test (#7052)
Browse files Browse the repository at this point in the history
  • Loading branch information
wing328 authored Jul 27, 2020
1 parent 39c4a12 commit 2743242
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ public void testModelsAreSortedAccordingToDependencyOrder() throws Exception {

Object[] keys = sorted.keySet().toArray();

Assert.assertTrue(keys[0] == "wheel");
Assert.assertTrue(keys[1] == "bike" || keys[1] == "car");
Assert.assertTrue(keys[2] == "bike" || keys[2] == "car");
Assert.assertTrue("wheel".equals(keys[0]));
Assert.assertTrue("bike".equals(keys[1]) || "car".equals(keys[1]));
Assert.assertTrue("bike".equals(keys[2]) || "car".equals(keys[2]));
Assert.assertEquals(keys[3], "parent");
Assert.assertEquals(keys[4], "child");

Expand Down

0 comments on commit 2743242

Please sign in to comment.