about summary refs log tree commit homepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_rg_integration.rb2
-rw-r--r--test/test_rg_state.rb6
2 files changed, 7 insertions, 1 deletions
diff --git a/test/test_rg_integration.rb b/test/test_rg_integration.rb
index a932720..29dd29b 100644
--- a/test/test_rg_integration.rb
+++ b/test/test_rg_integration.rb
@@ -63,7 +63,7 @@ class TestRgIntegration < Testcase
 
     check_gain.call(%r{gain -3}, "album_gain")
     check_gain.call(%r{gain -2}, "track_gain")
-    check_gain.call(%r{gain 0\.0}, "album_peak")
+    check_gain.call(%r{gain 0\.}, "album_peak")
     check_gain.call(%r{gain 2\.5}, "track_peak")
 
     s.req_ok("rg preamp+=1")
diff --git a/test/test_rg_state.rb b/test/test_rg_state.rb
index 3a84216..59061a2 100644
--- a/test/test_rg_state.rb
+++ b/test/test_rg_state.rb
@@ -20,6 +20,12 @@ class TestRGState < Testcase
     assert_equal({"preamp" => 0.666}, rg.to_hsh)
   end
 
+  def test_rg_vol_norm
+    rg = DTAS::RGState.new
+    assert_nil rg.rg_vol_norm(0.999999999)
+    assert_match(%r{\Again 0.827}, rg.rg_vol_norm(0.9))
+  end
+
   def test_mode_set
     rg = DTAS::RGState.new
     orig = rg.mode