todos
authorChuck Hagenbuch <chuck@horde.org>
Thu, 5 Feb 2009 04:42:13 +0000 (23:42 -0500)
committerChuck Hagenbuch <chuck@horde.org>
Thu, 5 Feb 2009 05:02:43 +0000 (00:02 -0500)
framework/Date_Parser/doc/TODO.txt [new file with mode: 0644]
framework/Date_Parser/test/Horde/Date/Parser/repeater_match_tests.php [new file with mode: 0644]

diff --git a/framework/Date_Parser/doc/TODO.txt b/framework/Date_Parser/doc/TODO.txt
new file mode 100644 (file)
index 0000000..c42f964
--- /dev/null
@@ -0,0 +1 @@
+- Horde_Date_Repeater_Weekday
diff --git a/framework/Date_Parser/test/Horde/Date/Parser/repeater_match_tests.php b/framework/Date_Parser/test/Horde/Date/Parser/repeater_match_tests.php
new file mode 100644 (file)
index 0000000..4f154c3
--- /dev/null
@@ -0,0 +1,11 @@
+  def test_match
+    token = Chronic::Token.new('saturday')
+    repeater = Chronic::Repeater.scan_for_day_names(token)
+    assert_equal Chronic::RepeaterDayName, repeater.class
+    assert_equal :saturday, repeater.type
+
+    token = Chronic::Token.new('sunday')
+    repeater = Chronic::Repeater.scan_for_day_names(token)
+    assert_equal Chronic::RepeaterDayName, repeater.class
+    assert_equal :sunday, repeater.type
+  end