Skip to content

Commit afac84f

Browse files
Merge pull request #116 from theseus-rs/improve-string-format
test: improve matcher error tests
2 parents 458c9c7 + c85b803 commit afac84f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

postgresql_extensions/src/matcher.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,12 @@ mod tests {
213213
let os = consts::OS;
214214
let arch = consts::ARCH;
215215
let names = vec![
216-
format!("foo{target}.tar.gz"),
217-
format!("foo{os}-{arch}.tar.gz"),
218-
format!("foo-{target}.tar"),
219-
format!("foo-{os}-{arch}.tar"),
220-
format!("foo-{os}{arch}.tar.gz"),
216+
format!("foo-pg{postgresql_major_version}.tar.gz"),
217+
format!("foo-{target}.tar.gz"),
218+
format!("foo-pg{postgresql_major_version}-{os}.tar.gz"),
219+
format!("foo-pg{postgresql_major_version}-{arch}.tar.gz"),
220+
format!("foo-pg{postgresql_major_version}{os}-{arch}.tar"),
221+
format!("foo-pg{postgresql_major_version}-{os}{arch}.tar.gz"),
221222
];
222223

223224
for name in names {

0 commit comments

Comments
 (0)