diff options
| author | salmonik <salmonik@tuta.io> | 2026-10-28 22:28:05 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-10-28 22:28:05 +0100 |
| commit | ea5e7d336719571e51ef14478ab603e71126e3d8 (patch) | |
| tree | 4fb59337501f798e6591701e52b9e785307efd63 /tests | |
| parent | Fix TUI: render_lines 6 for correct MoveUp, drain buffered events before clea... (diff) | |
| download | zagan-bet-ea5e7d336719571e51ef14478ab603e71126e3d8.tar.gz zagan-bet-ea5e7d336719571e51ef14478ab603e71126e3d8.zip | |
v0.2.2: split client/server logic into the library
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/slots.rs | 4 | ||||
| -rw-r--r-- | tests/storage.rs | 4 | ||||
| -rw-r--r-- | tests/tofu.rs | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/tests/slots.rs b/tests/slots.rs index 6babd98..12348c9 100644 --- a/tests/slots.rs +++ b/tests/slots.rs | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | //! Regression tests for the server-side slots game logic. | 1 | //! Regression tests for the server-side slots game logic. |
| 2 | 2 | ||
| 3 | use zagan_bet::server_game_traits::{Game, GamePhase}; | 3 | use zagan_bet::server::games::slots::SlotsGame; |
| 4 | use zagan_bet::server_slots::SlotsGame; | 4 | use zagan_bet::server::games::traits::{Game, GamePhase}; |
| 5 | 5 | ||
| 6 | fn make_game() -> SlotsGame { | 6 | fn make_game() -> SlotsGame { |
| 7 | SlotsGame::new() | 7 | SlotsGame::new() |
diff --git a/tests/storage.rs b/tests/storage.rs index 275d47d..b6e1369 100644 --- a/tests/storage.rs +++ b/tests/storage.rs | |||
| @@ -2,8 +2,8 @@ | |||
| 2 | 2 | ||
| 3 | use std::path::PathBuf; | 3 | use std::path::PathBuf; |
| 4 | 4 | ||
| 5 | use zagan_bet::client_database; | 5 | use zagan_bet::client::database as client_database; |
| 6 | use zagan_bet::server_database; | 6 | use zagan_bet::server::database as server_database; |
| 7 | 7 | ||
| 8 | fn tmp_db(name: &str) -> (String, rusqlite::Connection) { | 8 | fn tmp_db(name: &str) -> (String, rusqlite::Connection) { |
| 9 | let path = PathBuf::from(env!("CARGO_TARGET_TMPDIR")) | 9 | let path = PathBuf::from(env!("CARGO_TARGET_TMPDIR")) |
diff --git a/tests/tofu.rs b/tests/tofu.rs index 260e1b6..359c192 100644 --- a/tests/tofu.rs +++ b/tests/tofu.rs | |||
| @@ -7,7 +7,7 @@ | |||
| 7 | use std::path::PathBuf; | 7 | use std::path::PathBuf; |
| 8 | use std::process::Command; | 8 | use std::process::Command; |
| 9 | 9 | ||
| 10 | use zagan_bet::client_database; | 10 | use zagan_bet::client::database as client_database; |
| 11 | use zagan_bet::tofu::{decide, spki_fingerprint, TrustDecision}; | 11 | use zagan_bet::tofu::{decide, spki_fingerprint, TrustDecision}; |
| 12 | 12 | ||
| 13 | /// Generate a self-signed certificate under target/ and return its DER bytes. | 13 | /// Generate a self-signed certificate under target/ and return its DER bytes. |
