Skip to content

Commit

Permalink
test(journal): add new regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
symbiont-stevan-andjelkovic committed Feb 17, 2022
1 parent fd08085 commit 8680854
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/journal/test/JournalTest.hs
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,17 @@ unit_bug24 = assertConcProgram "" $ ConcProgram
, [AppendBS [(28,'K')],ReadJournal,AppendBS [(7682,'M')]]
]

unit_bug25 :: Assertion
unit_bug25 = assertConcProgram "" $ ConcProgram
[ [AppendBS [(32760,'X')],AppendBS [(32760,'J')],AppendBS [(32759,'I')],
AppendBS [(32759,'P')],AppendBS [(32760,'C')]]
, [AppendBS [(32760,'O')],ReadJournal,AppendBS [(32759,'S')],AppendBS [(32760,'J')]]
, [AppendBS [(32760,'A')],AppendBS [(22,'O')],ReadJournal,AppendBS [(32760,'C')]]
, [ReadJournal,AppendBS [(20,'I')]]
, [AppendBS [(20,'C')],AppendBS [(32759,'L')],AppendBS [(20,'S')]]
, [ReadJournal,ReadJournal,AppendBS [(21,'Z')],AppendBS [(32759,'T')],ReadJournal]
]

alignedLength :: Int -> Int
alignedLength n = align (hEADER_LENGTH + n) fRAME_ALIGNMENT

Expand Down

0 comments on commit 8680854

Please sign in to comment.