We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79db77f commit 5fcdfa5Copy full SHA for 5fcdfa5
tests/stuff_test.py
@@ -140,5 +140,17 @@ def test_comparison(self):
140
fact2.tags = ["tag", "bäg"]
141
self.assertEqual(fact1, fact2)
142
143
+ def test_decimal_in_activity(self):
144
+ # cf. issue #270
145
+ fact = Fact("12:25-13:25 10.0@ABC, Two Words #tag #bäg")
146
+ self.assertEqual(fact.activity, "10.0")
147
+ self.assertEqual(fact.category, "ABC")
148
+ self.assertEqual(fact.description, "Two Words")
149
+ # should not pick up a time here
150
+ fact = Fact("10.00@ABC, Two Words #tag #bäg")
151
+ self.assertEqual(fact.activity, "10.00")
152
153
154
+
155
if __name__ == '__main__':
156
unittest.main()
0 commit comments