diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 147c72b..a850918 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -22,4 +22,4 @@ jobs: - name: Run tests run: cargo test --verbose --release - name: Run tests wasm - run: cargo test --verbose --release --featuers wasm + run: cargo test --verbose --release --features wasm diff --git a/src/dp_module.rs b/src/dp_module.rs index a254991..07ed455 100644 --- a/src/dp_module.rs +++ b/src/dp_module.rs @@ -359,7 +359,7 @@ pub mod dp { /// ```rust /// ///use dpss::dp::sequence_matcher; - ///let answer = sequence_matcher(&mut vec![1980, 2980, 3500, 4000, 1050], &mut vec![1950, 2900, 30, 80, 3300, 200, 3980, 1050, 20], 10, 10, 2); + ///let answer = sequence_matcher(&mut vec![1980, 2980, 3500, 4000, 1050], &mut vec![1950, 2900, 30, 80, 3300, 200, 3980, 1050, 20], 10, 10, 100); ///assert_eq!(answer[0], vec![ /// (vec![1050], /// vec![1050]), @@ -378,17 +378,17 @@ pub mod dp { /// /// ]); ///assert_eq!(answer[1], vec![ - /// (vec![1980], + /// (vec![1050], + /// vec![1050]), + /// + /// (vec![1980], /// vec![30, 1950]), /// /// (vec![2980], /// vec![80, 2900]), /// - /// (vec![3500], - /// vec![200, 3300]), - /// - /// (vec![1050, 4000], - /// vec![20, 1050, 3980]), + /// (vec![3500, 4000], + /// vec![20, 200, 3300, 3980]), /// /// ]); /// ```