diff --git a/test/test_example_words.jl b/test/test_example_words.jl index 5093366..c956d65 100644 --- a/test/test_example_words.jl +++ b/test/test_example_words.jl @@ -56,6 +56,8 @@ function Base.iterate(aw::FreeWords) stack = [w] return w, (stack, 1) end +# This is needed for fast indexing into DiracBasis: +Base.in(x::Word, fw::FreeWords) = x.alphabet == fw.alphabet function Base.iterate(aw::FreeWords, state) stack, l = state