Skip to content

Commit

Permalink
Play a sequence of sources (playlists #3).
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=124713796
  • Loading branch information
andrewlewis authored and ojw28 committed Jun 15, 2016
1 parent df4e4a7 commit 7ae9bf4
Show file tree
Hide file tree
Showing 4 changed files with 603 additions and 177 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,23 +144,6 @@ public void testParseXsDateTime() throws ParseException {
assertEquals(1407322800000L, Util.parseXsDateTime("2014-08-06T11:00:00Z"));
}

public void testLongSplitting() {
assertLongSplittingForValue(Long.MIN_VALUE);
assertLongSplittingForValue(Long.MIN_VALUE + 1);
assertLongSplittingForValue(-1);
assertLongSplittingForValue(0);
assertLongSplittingForValue(1);
assertLongSplittingForValue(Long.MAX_VALUE - 1);
assertLongSplittingForValue(Long.MAX_VALUE);
}

private static void assertLongSplittingForValue(long value) {
int topBits = Util.getTopInt(value);
int bottomBots = Util.getBottomInt(value);
long reconstructedValue = Util.getLong(topBits, bottomBots);
assertEquals(value, reconstructedValue);
}

public void testUnescapeInvalidFileName() {
assertNull(Util.unescapeFileName("%a"));
assertNull(Util.unescapeFileName("%xyz"));
Expand Down
Loading

0 comments on commit 7ae9bf4

Please sign in to comment.