Permalink
Browse files

Add curve unit tests

  • Loading branch information...
1 parent c4405ec commit 5ab3caa5400f151ff5ac2b44f7679c6b4269e4c2 @ccampbell committed Apr 21, 2012
Showing with 42 additions and 0 deletions.
  1. +12 −0 tests/features/curves.mml
  2. +30 −0 tests/features/curves.mmlx
View
@@ -0,0 +1,12 @@
+@v0 = { 0 0 0 0 0 0 0 0 1 1 1 2 2 2 3 3 4 4 5 6 6 7 8 8 9 10 11 12 13 14 15 }
+@v1 = { 0 0 1 2 3 4 5 6 6 7 8 8 9 10 10 11 11 12 12 12 13 13 13 14 14 14 14 14 14 14 15 }
+@v2 = { 0 0 0 0 0 0 1 1 2 2 3 4 4 5 6 7 8 9 10 10 11 12 12 13 13 14 14 14 14 14 15 }
+@v3 = { 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 2 2 3 3 4 5 5 6 7 8 9 10 12 13 15 }
+@v4 = { 0 1 2 4 5 6 7 8 9 9 10 11 11 12 12 13 13 13 14 14 14 14 14 14 14 14 14 14 14 14 15 }
+@v5 = { 0 0 0 0 0 0 0 0 1 1 2 2 3 4 6 7 8 10 11 12 12 13 13 14 14 14 14 14 14 14 15 }
+@v6 = { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 2 2 3 4 5 6 7 8 9 11 13 15 }
+@v7 = { 0 1 3 5 6 7 8 9 10 11 12 12 13 13 13 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 15 }
+@v8 = { 0 0 0 0 0 0 0 0 0 0 1 2 3 4 5 7 9 10 11 12 13 14 14 14 14 14 14 14 14 14 15 }
+A @v0 @v1 @v2
+A @v3 @v4 @v5
+A @v6 @v7 @v8
View
@@ -0,0 +1,30 @@
+easeInQuad:
+ volume: 0..15.curve('easeInQuad').step(.5)
+
+easeOutQuad:
+ volume: 0..15.curve('easeOutQuad').step(.5)
+
+easeInOutQuad:
+ volume: 0..15.curve('easeInOutQuad').step(.5)
+
+easeInCubic:
+ volume: 0..15.curve('easeInCubic').step(.5)
+
+easeOutCubic:
+ volume: 0..15.curve('easeOutCubic').step(.5)
+
+easeInOutCubic:
+ volume: 0..15.curve('easeInOutCubic').step(.5)
+
+easeInQuart:
+ volume: 0..15.curve('easeInQuart').step(.5)
+
+easeOutQuart:
+ volume: 0..15.curve('easeOutQuart').step(.5)
+
+easeInOutQuart:
+ volume: 0..15.curve('easeInOutQuart').step(.5)
+
+A @easeInQuad @easeOutQuad @easeInOutQuad
+A @easeInCubic @easeOutCubic @easeInOutCubic
+A @easeInQuart @easeOutQuart @easeInOutQuart

0 comments on commit 5ab3caa

Please sign in to comment.