feat: version string formatting yy.mm.dd.hhmmss, app icon, and test fixes
This commit is contained in:
1 parent
1752753fcc
commit
81aac7245b
17 files changed
+170
-412
No files matched your search
@@ -6,14 +6,14 @@ fn test_eager_tools_parity() {
|
||||
let memory_source =
|
||||
std::fs::read_to_string("src/handlers.rs").expect("Failed to read handlers.rs");
|
||||
let mut memory_tools = HashSet::new();
|
||||
for line in memory_source.lines() {
|
||||
if line.contains("crate::mcp::tool_def")
|
||||
&& let Some(start) = line.find("(\"") {
|
||||
let rest = &line[start + 2..];
|
||||
if let Some(end) = rest.find("\"") {
|
||||
memory_tools.insert(rest[..end].to_string());
|
||||
}
|
||||
let parts: Vec<&str> = memory_source.split("crate::mcp::tool_def").collect();
|
||||
for part in parts.iter().skip(1) {
|
||||
if let Some(start) = part.find("\"") {
|
||||
let rest = &part[start + 1..];
|
||||
if let Some(end) = rest.find("\"") {
|
||||
memory_tools.insert(rest[..end].to_string());
|
||||
}
|
||||
}
|
||||
}
|
||||
assert!(
|
||||
!memory_tools.is_empty(),
|
||||
|
||||
Reference in new issue
Block a user