about summary refs log tree commit homepage
path: root/test
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-09-09 07:45:22 +0000
committerEric Wong <normalperson@yhbt.net>2013-09-09 07:45:22 +0000
commit0a2c2084eaca34fb869ee338315e91cbf809212f (patch)
tree402631a9bdfb47ef8c9b67804331191bac44f38c /test
parent137e36e346a4641850183684ab136fe781af121a (diff)
downloaddtas-0a2c2084eaca34fb869ee338315e91cbf809212f.tar.gz
tracklist: next_track -> advance_track
This is a more accurate depiction of what happens,
and we'll implement "next" and "previous" commands in the future.
Diffstat (limited to 'test')
-rw-r--r--test/test_tracklist.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/test_tracklist.rb b/test/test_tracklist.rb
index e4ca9ac..fb5cc3e 100644
--- a/test/test_tracklist.rb
+++ b/test/test_tracklist.rb
@@ -28,15 +28,15 @@ class TestTracklist < Testcase
     assert_equal '/foo.flac', tl.cur_track
   end
 
-  def test_next_track
+  def test_advance_track
     tl = DTAS::Tracklist.new
     tl.instance_variable_get(:@list).replace(%w(a b c d e f g))
     %w(a b c d e f g).each do |t|
-      assert_equal t, tl.next_track
+      assert_equal t, tl.advance_track
     end
-    assert_nil tl.next_track
+    assert_nil tl.advance_track
     tl.repeat = true
-    assert_equal 'a', tl.next_track
+    assert_equal 'a', tl.advance_track
   end
 
   def _build_mapping(tl)
@@ -49,9 +49,9 @@ 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_equal 'f', tl.advance_track
     assert_nil tl.go_to(1 << 128)
-    assert_equal 'g', tl.next_track
+    assert_equal 'g', tl.advance_track
   end
 
   def test_remove_track