Skip to content

Commit

Permalink
Ensure to use raw in previous kittest
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelGrupp committed Feb 17, 2025
1 parent 064da6e commit 52f8848
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ pub use crate::app_impl::pose_edit::PoseEditOptions;
pub use crate::app_impl::tint_settings::TintOptions;
pub use crate::grid_options::GridOptions;
pub use crate::lens::LensOptions;
pub use crate::value_colormap::ColorMap;
pub use crate::value_interpretation::ValueInterpretation;

use crate::map_state::MapState;
use crate::meta::Meta;
Expand Down
11 changes: 10 additions & 1 deletion tests/value_interpretation_kittest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::path::PathBuf;
use eframe::egui;

use kittest_common::*;
use maps::app::{AppOptions, AppState, ViewMode};
use maps::app::{AppOptions, AppState, ColorMap, TintOptions, ValueInterpretation, ViewMode};

const WIKI_SESSION: &str = "tests/sessions/value_interpretations_ros1_wiki.toml";
const MAP_SERVER_SESSION: &str = "tests/sessions/value_interpretations_map_server.toml";
Expand All @@ -26,6 +26,15 @@ fn run(name: &str, session_file: &str) {
Vec::new(),
AppOptions {
view_mode: ViewMode::Stacked,
tint_settings: TintOptions {
use_value_interpretation_for_all: true,
// This test shall output the raw interpretation without colormap.
value_interpretation_for_all: ValueInterpretation {
colormap: ColorMap::Raw,
..Default::default()
},
..Default::default()
},
..Default::default()
},
)
Expand Down

0 comments on commit 52f8848

Please sign in to comment.