Skip to content

Commit

Permalink
test(packages): Correct muti-level counter test expectations
Browse files Browse the repository at this point in the history
When setting/incrementing a level far below the current level,
previous level are set to 0 rather than the value of the
previous valid level, e.g. if setting 1.3 at level 5, we
expect 1.3.0.0.1 rather than 1.3.3.3.1.
  • Loading branch information
Omikhleia authored and Didier Willis committed Sep 7, 2022
1 parent b6a9a90 commit e691329
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions tests/bug-522.expected
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ My 75.0822
Set font Gentium Plus;10;400;;normal;;LTR
T 19 w=4.6924 (0)
My 87.0822
T 19 17 20 17 20 w=18.6572 (0.1.1)
T 19 17 19 17 20 w=18.6572 (0.0.1)
My 99.0822
T 19 17 20 17 21 w=18.6572 (0.1.2)
T 19 17 19 17 21 w=18.6572 (0.0.2)
My 111.0822
T 19 17 21 w=11.6748 (0.2)
T 19 17 20 w=11.6748 (0.1)
Mx 195.4611
My 519.8019
T 20 w=4.6924 (1)
Expand Down
10 changes: 5 additions & 5 deletions tests/mlcounter.expected
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,27 @@ Mx 48.3487
T 36 68 w=10.5420 (Aa)
Mx 40.9764
My 48.1944
T 20 17 20 17 20 17 20 w=25.6396 (1.1.1.1)
T 20 17 19 17 19 17 20 w=25.6396 (1.0.0.1)
Mx 69.2937
T 37 69 w=10.5762 (Bb)
Mx 40.9764
My 60.1944
T 20 17 20 17 20 17 21 w=25.6396 (1.1.1.2)
T 20 17 19 17 19 17 21 w=25.6396 (1.0.0.2)
Mx 69.2938
T 38 70 w=9.7314 (Cc)
Mx 40.9764
My 72.1944
T 20 17 20 17 20 17 22 w=25.6396 (1.1.1.3)
T 20 17 19 17 19 17 22 w=25.6396 (1.0.0.3)
Mx 69.2936
T 39 71 w=11.1279 (Dd)
Mx 40.9764
My 84.1944
T 20 17 21 w=11.6748 (1.2)
T 20 17 20 w=11.6748 (1.1)
Mx 55.3305
T 40 72 w=9.5801 (Ee)
Mx 40.9764
My 96.1944
T 20 17 21 17 20 17 20 17 20 w=32.6221 (1.2.1.1.1)
T 20 17 20 17 19 17 19 17 20 w=32.6221 (1.1.0.0.1)
Mx 76.2756
T 41 73 w=7.8906 (Ff)
Mx 207.4176
Expand Down

0 comments on commit e691329

Please sign in to comment.