Implement remaining TestClient service commands (#94)
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
use libremetaverse::animesh::AnimeshManager;
|
||||
use libremetaverse::appearance::CurrentOutfitFolder;
|
||||
use libremetaverse::{
|
||||
AgentManager, AppearanceManagerWearableData, AssetDownload, AssetManager, AssetUpload,
|
||||
ChatEventArgs, ChatType, InventoryException, InventoryItem, InventoryManager,
|
||||
AgentManager, Animations, AppearanceManagerWearableData, AssetDownload, AssetManager,
|
||||
AssetUpload, ChatEventArgs, ChatType, InventoryException, InventoryItem, InventoryManager,
|
||||
TeleportEventArgs,
|
||||
};
|
||||
use libremetaverse_types::compat::{CancellationToken, EventHandler, Subscription};
|
||||
@@ -116,3 +116,16 @@ fn avatar_facing_constructors_preserve_native_defaults_and_catalog_errors() {
|
||||
"M:LibreMetaverse.InventoryException.#ctor"
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn built_in_animation_dictionary_matches_the_pinned_source_catalog() {
|
||||
let catalog = Animations::to_dictionary().expect("animation dictionary").0;
|
||||
assert_eq!(catalog.len(), 135);
|
||||
assert_eq!(
|
||||
catalog.get(&Animations::dance1()).map(String::as_str),
|
||||
Some("DANCE1")
|
||||
);
|
||||
let yoga = UUID::new_with_string("42ecd00b-9947-a97c-400a-bbc9174c7aeb".into())
|
||||
.expect("YOGA_FLOAT UUID");
|
||||
assert_eq!(catalog.get(&yoga).map(String::as_str), Some("YOGA_FLOAT"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user