From 39626a1764d93cc9d5188c2a3811719ceae4a21f Mon Sep 17 00:00:00 2001 From: Erik Rauer Date: Thu, 7 Jan 2021 14:27:14 -0600 Subject: [PATCH] Fix `vector/_replacefirst` tests This fixes the `vector/_replacefirst` tests to be consistent with the changes made to `vector/_replacefirst` in the previous commit. --- test/propeller/push/instructions/vector_spec.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/propeller/push/instructions/vector_spec.clj b/test/propeller/push/instructions/vector_spec.clj index b8cb6d4..8021dea 100644 --- a/test/propeller/push/instructions/vector_spec.clj +++ b/test/propeller/push/instructions/vector_spec.clj @@ -331,7 +331,7 @@ replacement-index (.indexOf vect toreplace)] (or (and (= replacement-index -1) - (= [replacement toreplace] (state/peek-stack-many end-state value-stack 2)) + (state/empty-stack? end-state value-stack) (= vect end-vector)) (and (state/empty-stack? end-state value-stack) (= end-vector (assoc vect replacement-index replacement))))))