Skip to content

Commit 29e5ac7

Browse files
authored
Remove tests that are testing the standard library (#78)
These tests never call into code from the pg_query crate. They are purely testing the standard library's behavior, and have begun failing due to a change in the error message in std
1 parent 7e189a9 commit 29e5ac7

2 files changed

Lines changed: 0 additions & 18 deletions

File tree

tests/summary_truncate_tests.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,3 @@ fn char_truncate_works() {
114114
let output = "WITH \"原チコ氏にはす腹腹腹腹腹...";
115115
assert_eq!(result.truncated_query, output);
116116
}
117-
118-
#[test]
119-
#[should_panic(
120-
expected = "byte index 22 is not a char boundary; it is inside 'は' (bytes 21..24) of `WITH \"原チコ氏にはす腹腹腹腹腹腹腹腹腹腹腹\" AS (SELECT) SELECT w`"
121-
)]
122-
fn byte_truncate_fails() {
123-
let query = "WITH \"原チコ氏にはす腹腹腹腹腹腹腹腹腹腹腹\" AS (SELECT) SELECT w".to_string();
124-
query[0..=21].to_string();
125-
}

tests/truncate_tests.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,3 @@ fn char_truncate_works() {
116116
let output = "WITH \"原チコ氏にはす腹腹腹腹腹...";
117117
assert_eq!(result.truncate(21).unwrap(), output);
118118
}
119-
120-
#[test]
121-
#[should_panic(
122-
expected = "byte index 22 is not a char boundary; it is inside 'は' (bytes 21..24) of `WITH \"原チコ氏にはす腹腹腹腹腹腹腹腹腹腹腹\" AS (SELECT) SELECT w`"
123-
)]
124-
fn byte_truncate_fails() {
125-
let query = "WITH \"原チコ氏にはす腹腹腹腹腹腹腹腹腹腹腹\" AS (SELECT) SELECT w".to_string();
126-
query[0..=21].to_string();
127-
}

0 commit comments

Comments
 (0)