feat: Reiter Embeddings mit Vektor-Test und Vektorgröße (#1184, Schritt 2); Version 0.1.15-rc17
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GmHhg6k5Hxh8GpVW7od4Di
This commit is contained in:
@ -35,7 +35,7 @@ pub struct Pruefstand {
|
||||
pub nr: usize,
|
||||
pub von: usize,
|
||||
/// Fertige Urteile in der Reihenfolge der Schritte.
|
||||
pub urteile: Vec<(&'static str, &'static str)>,
|
||||
pub urteile: Vec<(&'static str, String)>,
|
||||
pub seit: Instant,
|
||||
pub ende: Option<Instant>,
|
||||
}
|
||||
@ -100,7 +100,7 @@ impl AppState {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn pruefung_urteil(&self, modell: &str, schritt: &'static str, urteil: &'static str) {
|
||||
pub fn pruefung_urteil(&self, modell: &str, schritt: &'static str, urteil: String) {
|
||||
if let Some(p) = self.pruefungen().get_mut(modell) {
|
||||
p.urteile.push((schritt, urteil));
|
||||
}
|
||||
@ -161,9 +161,9 @@ mod tests {
|
||||
"Zweiter Start während des Laufs"
|
||||
);
|
||||
s.pruefung_schritt("m", "Denkstufe", 1);
|
||||
s.pruefung_urteil("m", "Denkstufe", "ja");
|
||||
s.pruefung_urteil("m", "Denkstufe", "ja".to_string());
|
||||
let p = s.pruefstand("m").unwrap();
|
||||
assert!(p.lauf && p.nr == 1 && p.urteile == vec![("Denkstufe", "ja")]);
|
||||
assert!(p.lauf && p.nr == 1 && p.urteile == vec![("Denkstufe", "ja".to_string())]);
|
||||
s.pruefung_ende("m");
|
||||
let p = s.pruefstand("m").unwrap();
|
||||
assert!(!p.lauf && p.ende.is_some());
|
||||
|
||||
Reference in New Issue
Block a user