Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alteous committed Apr 22, 2024
1 parent 33ce6a1 commit 1814bc7
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gltf-json/src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ impl Path {
/// ```rust
/// # use gltf_json::Path;
/// let path = Path::new().field("foo").index(0).value_str("baz");
/// assert_eq!("foo[0] = \"baz\", path.as_str());
/// assert_eq!("foo[0] = \"baz\"", path.as_str());
/// ```
pub fn value_str(&self, value: &str) -> Self {
Path(format!("{} = \"{}\"", self.0, value))
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/roundtrip_binary_gltf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use std::io::Read;
use std::{boxed, error, fs, io, path};

const SAMPLE_MODELS_DIRECTORY_PATH: &str = "glTF-Sample-Models/2.0";
const SAMPLE_MODELS_DIRECTORY_PATH: &str = "glTF-Sample-Assets/Models";

fn run() -> Result<(), boxed::Box<dyn error::Error>> {
let mut all_tests_passed = true;
Expand Down
2 changes: 1 addition & 1 deletion tests/test_wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ fn test_accessor_bounds() {
/// The accessor use a base `bufferView` that contains 14 `Vec3`s and the sparse
/// section overwrites 3 of these with other values when read.
const SIMPLE_SPARSE_ACCESSOR_GLTF: &str =
"glTF-Sample-Models/2.0/SimpleSparseAccessor/glTF-Embedded/SimpleSparseAccessor.gltf";
"glTF-Sample-Assets/Models/SimpleSparseAccessor/glTF-Embedded/SimpleSparseAccessor.gltf";

#[test]
fn test_sparse_accessor_with_base_buffer_view_yield_exact_size_hints() {
Expand Down

0 comments on commit 1814bc7

Please sign in to comment.