aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2023-11-09 17:23:44 +0100
committerGitHub <noreply@github.com>2023-11-09 17:23:44 +0100
commit2aac1889a7fb8689f8b45e4de5eb8c73ae61eba3 (patch)
treed5337e5a17bbca15aa40f50a1a0d611fb504479f
parent062295ed0a8ba804804314b1d9d310d4d2248d5e (diff)
downloadFlightCore-2aac1889a7fb8689f8b45e4de5eb8c73ae61eba3.tar.gz
FlightCore-2aac1889a7fb8689f8b45e4de5eb8c73ae61eba3.zip
test: Remove the leading `v` from version numbers (#668)
They don't appear in the actual version numbers either.
-rw-r--r--src-tauri/src/util.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src-tauri/src/util.rs b/src-tauri/src/util.rs
index ba686cd0..9ac8580b 100644
--- a/src-tauri/src/util.rs
+++ b/src-tauri/src/util.rs
@@ -241,7 +241,7 @@ mod tests {
#[test]
fn test_not_release_candidate() {
- let input = "v1.2.3".to_string();
+ let input = "1.2.3".to_string();
let output = convert_release_candidate_number(input.clone());
let expected_output = input;
assert_eq!(output, expected_output);
@@ -249,17 +249,17 @@ mod tests {
#[test]
fn test_basic_release_candidate_number_conversion() {
- let input = "v1.2.3-rc4".to_string();
+ let input = "1.2.3-rc4".to_string();
let output = convert_release_candidate_number(input);
- let expected_output = "v1.2.304";
+ let expected_output = "1.2.304";
assert_eq!(output, expected_output);
}
#[test]
fn test_leading_zero_release_candidate_number_conversion() {
- let input = "v1.2.0-rc3".to_string();
+ let input = "1.2.0-rc3".to_string();
let output = convert_release_candidate_number(input);
- let expected_output = "v1.2.3";
+ let expected_output = "1.2.3";
assert_eq!(output, expected_output);
}
@@ -268,9 +268,9 @@ mod tests {
// let input = "v1.2.34-rc5".to_string();
// let output = convert_release_candidate_number(input);
// let expected_output = "v1.2.3405";
- let input = "v1.19.10-rc1".to_string();
+ let input = "1.19.10-rc1".to_string();
let output = convert_release_candidate_number(input);
- let expected_output = "v1.19.1001";
+ let expected_output = "1.19.1001";
assert_eq!(output, expected_output);
}