Skip to content

Commit

Permalink
Typo, spacing error and expected/actual pattern
Browse files Browse the repository at this point in the history
Co-authored-by: András B Nagy <[email protected]>
  • Loading branch information
kotp and BNAndras committed Nov 25, 2023
1 parent f22b319 commit 248acf3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions exercises/practice/run-length-encoding/run_length_encoding.vader
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ Execute (encode two letters that repeat):
AssertEqual g:expected, g:actual

Execute (encode three letters that repeat):
let g:encoded = Encode('aaa')
let g:actual = Encode('aaa')
let g:expected = '3a'
AssertEqual g:expected, g:actual

Execute (encode abaabbbabaaa):
let g:encoded = Encode('abaabbbabaaa')
let g:actual = Encode('abaabbbabaaa')
let g:expected = 'ab2a3bab3a'
AssertEqual g:expected, g:actual

Execute (encode a very long text):
let g:encoded = Encode('aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz')
let g:actual = Encode('aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz')
let g:expected = '2a2b2c2d2e2f2g2h2i2j2k2l2m2n2o2p2q2r2s2t2u2v2w2x2y2z2'
AssertEqual g:expected, g:actual

Expand All @@ -40,12 +40,12 @@ Execute (encode single characters only are encoded without count):

Execute (encode text with no single characters):
let g:actual = Encode('AABBBCCCC')
let g: expected = '2A3B4C'
let g:expected = '2A3B4C'
AssertEqual g:expected, g:actual

Execute (encode single characters with repeated characters):
let g:actual = Encode('WWWWWWWWWWWWBWWWWWWWWWWWWBBBWWWWWWWWWWWWWWWWWWWWWWWWB')
let g: expected = '12WB12W3B24WB'
let g:expected = '12WB12W3B24WB'
AssertEqual g:expected, g:actual

Execute (encode multiple whitespace mixed in text):
Expand All @@ -58,7 +58,7 @@ Execute (encode lowercase characters):
let g:expected = '2a3b4c'
AssertEqual g:expected, g:actual

Execute (encde and then decode empty text gives empty text):
Execute (encode and then decode empty text gives empty text):
let g:actual = Decode(Encode(''))
let g:expected = ''
AssertEqual g:expected, g:actual
Expand Down

0 comments on commit 248acf3

Please sign in to comment.