mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-01 04:31:52 -07:00
X.P.OrgMode: Require whitespace before priority
By being a bit less greedy with consuming whitespace in the date/time parsers, we can make the `prop_{encode,decode}Preservation` properties well-defined again.
This commit is contained in:
@@ -57,6 +57,13 @@ spec = do
|
||||
B
|
||||
)
|
||||
|
||||
context "no priority#b" $ do
|
||||
it "parses to the correct thing" $
|
||||
pInput "no priority#b"
|
||||
`shouldBe` Just (NormalMsg "no priority#b" NoPriority)
|
||||
it "encode" $ prop_encodePreservation (OrgMsg "no priority#b")
|
||||
it "decode" $ prop_decodePreservation (NormalMsg "no priority#b" NoPriority)
|
||||
|
||||
context "+d +d f" $ do
|
||||
it "encode" $ prop_encodePreservation (OrgMsg "+d +d f")
|
||||
it "decode" $ prop_decodePreservation (Deadline "+d" (Time {date = Next Friday, tod = Nothing}) NoPriority)
|
||||
|
Reference in New Issue
Block a user