forked from WilliamVenner/steamlocate-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add failing test * Alias `last_updated` to `lastupdated` as well
- Loading branch information
1 parent
fe42453
commit d9f998a
Showing
5 changed files
with
82 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
use crate::tests::{ | ||
helpers::{SampleApp, TempSteamDir}, | ||
TestResult, | ||
}; | ||
|
||
// Context: https://github.com/WilliamVenner/steamlocate-rs/issues/58 | ||
#[test] | ||
fn app_lastupdated_casing() -> TestResult { | ||
let sample_app = SampleApp::Resonite; | ||
let temp_steam_dir = TempSteamDir::builder().app(sample_app.into()).finish()?; | ||
let steam_dir = temp_steam_dir.steam_dir(); | ||
|
||
let (app, _library) = steam_dir.find_app(sample_app.id())?.unwrap(); | ||
// Last updated _should_ be `Some(_)` for this app even though it uses lowercase casing | ||
let _ = app.last_updated.unwrap(); | ||
|
||
Ok(()) | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
"AppState" | ||
{ | ||
"appid" "2519830" | ||
"Universe" "1" | ||
"name" "Resonite" | ||
"StateFlags" "4" | ||
"installdir" "Resonite" | ||
"lastupdated" "1702688752" | ||
"SizeOnDisk" "1102323116" | ||
"StagingSize" "0" | ||
"buildid" "12967476" | ||
"LastOwner" "76561198022773299" | ||
"UpdateResult" "0" | ||
"BytesToDownload" "2332576" | ||
"BytesDownloaded" "2332576" | ||
"BytesToStage" "54625540" | ||
"BytesStaged" "54625540" | ||
"TargetBuildID" "12967476" | ||
"AutoUpdateBehavior" "0" | ||
"AllowOtherDownloadsWhileRunning" "0" | ||
"ScheduledAutoUpdate" "0" | ||
"InstalledDepots" | ||
{ | ||
"2519832" | ||
{ | ||
"manifest" "1396658363472368690" | ||
"size" "514493538" | ||
} | ||
"2519831" | ||
{ | ||
"manifest" "5082223756179978205" | ||
"size" "587829578" | ||
} | ||
} | ||
"SharedDepots" | ||
{ | ||
"228984" "228980" | ||
"228985" "228980" | ||
"228988" "228980" | ||
"228989" "228980" | ||
} | ||
"UserConfig" | ||
{ | ||
"language" "english" | ||
} | ||
"MountedConfig" | ||
{ | ||
"language" "english" | ||
} | ||
} |