diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-09-09 04:35:22 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-09-09 04:38:57 +0000 |
commit | 173c00415b27214b2bb67ac15359d7e50be60623 (patch) | |
tree | 42dbcbb142ae358e1e799b8d92a68210e11ef379 /test/test_tracklist.rb | |
parent | 6de01f03d5d9d248046853af45ed2eeef3b1308e (diff) | |
download | dtas-173c00415b27214b2bb67ac15359d7e50be60623.tar.gz |
We need to preserve the go_to-specified position for next_track, doing otherwise would cause us to always be off-by-one.
Diffstat (limited to 'test/test_tracklist.rb')
-rw-r--r-- | test/test_tracklist.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_tracklist.rb b/test/test_tracklist.rb index cc462c5..e4ca9ac 100644 --- a/test/test_tracklist.rb +++ b/test/test_tracklist.rb @@ -49,6 +49,7 @@ class TestTracklist < Testcase tl.instance_variable_get(:@list).replace(%w(a b c d e f g)) mapping = _build_mapping(tl) assert_equal 'f', tl.go_to(mapping['f']) + assert_equal 'f', tl.next_track assert_nil tl.go_to(1 << 128) assert_equal 'g', tl.next_track end |