Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/utilities/NeverValidAssumptionTest.java @ 17439:e9c8742148c1
Truffle: NeverValidAssumption can be invalidated.
author | Chris Seaton <chris.seaton@oracle.com> |
---|---|
date | Tue, 14 Oct 2014 15:06:49 +0100 |
parents | d51c097cca37 |
children |
comparison
equal
deleted
inserted
replaced
17431:df548b06c259 | 17439:e9c8742148c1 |
---|---|
48 public void testIsValid() { | 48 public void testIsValid() { |
49 final NeverValidAssumption assumption = NeverValidAssumption.INSTANCE; | 49 final NeverValidAssumption assumption = NeverValidAssumption.INSTANCE; |
50 assertFalse(assumption.isValid()); | 50 assertFalse(assumption.isValid()); |
51 } | 51 } |
52 | 52 |
53 @Test(expected = UnsupportedOperationException.class) | 53 @Test |
54 public void testCannotInvalidate() { | 54 public void testInvalidateDoesNothing() { |
55 final NeverValidAssumption assumption = NeverValidAssumption.INSTANCE; | 55 final NeverValidAssumption assumption = NeverValidAssumption.INSTANCE; |
56 assumption.invalidate(); | |
57 assumption.invalidate(); | |
56 assumption.invalidate(); | 58 assumption.invalidate(); |
57 } | 59 } |
58 | 60 |
59 } | 61 } |