Created
April 1, 2018 00:07
-
-
Save brodieG/147f5f45e4e96970dfd8cc684a6ba5f5 to your computer and use it in GitHub Desktop.
`crayon` tests run with `fansi` string manip funs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
── 1. Failure: col_substr keeps color (@test-operations.R#31) ───────────────── | |
col_substr("\033[31mred\033[39m", 1, 1) not equal to "\033[31mr\033[39m". | |
1/1 mismatches | |
x[1]: "\033[31mr\033[0m" | |
y[1]: "\033[31mr\033[39m" | |
── 2. Failure: col_substr keeps color (@test-operations.R#33) ───────────────── | |
col_substr("foo\033[31mred\033[39m", 4, 4) not equal to "\033[31mr\033[39m". | |
1/1 mismatches | |
x[1]: "\033[31mr\033[0m" | |
y[1]: "\033[31mr\033[39m" | |
── 3. Failure: col_substr keeps color (@test-operations.R#35) ───────────────── | |
col_substr("foo\033[31mred\033[39mbar", 4, 4) not equal to "\033[31mr\033[39m". | |
1/1 mismatches | |
x[1]: "\033[31mr\033[0m" | |
y[1]: "\033[31mr\033[39m" | |
── 4. Failure: col_substr keeps color (@test-operations.R#37) ───────────────── | |
col_substr(...) not equal to "\033[31m\033[39m\033[31mr\033[39m". | |
1/1 mismatches | |
x[1]: "\033[31mr\033[0m" | |
y[1]: "\033[31m\033[39m\033[31mr\033[39m" | |
── 5. Failure: col_substr corner cases (@test-operations.R#87) ──────────────── | |
`col_substr("abc", "hello", 1)` did not throw an error. | |
── 6. Failure: col_strsplit (@test-operations.R#139) ────────────────────────── | |
col_strsplit(str, "e") not equal to list(c("\033[31mr\033[39m", "\033[31md\033[39m-plain")). | |
Component 1: 1 string mismatch | |
── 7. Failure: Weird length 'split' (@test-operations.R#189) ────────────────── | |
`col_strsplit(c("ab", "bd"), c("b", "d"))` did not throw an error. | |
══ testthat results ═══════════════════════════════════════════════════════════ | |
OK: 540 SKIPPED: 2 FAILED: 7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment