diff --git a/tests/test_0637-setup-tests-for-AwkwardForth.py b/tests/test_0637-setup-tests-for-AwkwardForth.py index 7f2cb2b31..9d6093a77 100644 --- a/tests/test_0637-setup-tests-for-AwkwardForth.py +++ b/tests/test_0637-setup-tests-for-AwkwardForth.py @@ -20,6 +20,8 @@ def test_00(is_forth): assert py[0]["0"][0] == "expskin_FluxUnisim" # py[-1] == assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None @pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @@ -34,6 +36,8 @@ def test_01(is_forth): assert py[0][0]["fP"]["fZ"] == pytest.approx(-81.600465) # py[-1] == array([, ], dtype=object) assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None @pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @@ -48,9 +52,11 @@ def test_02(is_forth): assert py[-1][8][3]["fE"] == 0 # py[-1] == array([[, , , , ], [, , , , ]], dtype=object) assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None + -@pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @pytest.mark.parametrize("is_forth", [False, True]) def test_03(is_forth): with uproot.open(skhep_testdata.data_path("uproot-FCCDelphesOutput.root")) as file: @@ -65,9 +71,11 @@ def test_03(is_forth): ) # py[-1] == assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None + -@pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @pytest.mark.parametrize("is_forth", [False, True]) def test_04(is_forth): with uproot.open(skhep_testdata.data_path("uproot-issue-123a.root")) as file: @@ -79,6 +87,8 @@ def test_04(is_forth): assert py[0][3][2] == 589824 # py[-1] == assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None def test_05(): @@ -89,7 +99,7 @@ def test_05(): # py[-1] == -@pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") + @pytest.mark.parametrize("is_forth", [False, True]) def test_06(is_forth): with uproot.open(skhep_testdata.data_path("uproot-issue-123a.root")) as file: @@ -100,9 +110,11 @@ def test_06(is_forth): assert py[1][-1][-2] == 0 # py[-1] == assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None + -@pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @pytest.mark.parametrize("is_forth", [False, True]) def test_07(is_forth): with uproot.open(skhep_testdata.data_path("uproot-issue-123a.root")) as file: @@ -113,6 +125,8 @@ def test_07(is_forth): assert py[1][2][0] == pytest.approx(53949.015625) # py[-1] == assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None def test_08(): @@ -136,9 +150,11 @@ def test_09(is_forth): assert py[0][0][0]["m_persKey"] == 352341021 # py[-1] == > (version 1) at 0x7febbf1b2fa0>], ...] at 0x7febbf1b2f40> assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None + -@pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @pytest.mark.parametrize("is_forth", [False, True]) def test_10(is_forth): with uproot.open(skhep_testdata.data_path("uproot-issue-123a.root")) as file: @@ -149,6 +165,8 @@ def test_10(is_forth): assert py[0][0][0] == pytest.approx(168.03048706054688) # py[-1] == assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None @pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @@ -164,6 +182,8 @@ def test_11(is_forth): assert py[0][0][0]["m_persKey"] == 921521854 # py[-1] == > (version 1) at 0x7f636a9484c0>], ...] at 0x7f636a948eb0> assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None @pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @@ -177,6 +197,8 @@ def test_12(is_forth): assert py[0][0][0]["m_persIndex"] == 2 # py[-1] == > (version 1) at 0x7fc259ae37c0>], ...] at 0x7fc259ae3f10> assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None @pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @@ -190,9 +212,11 @@ def test_13(is_forth): assert py[0][0][0]["m_persIndex"] == 0 # py[-1] == > (version 1) at 0x7fa94e968c10>], ...] at 0x7fa94e968c70> assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None + -@pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @pytest.mark.parametrize("is_forth", [False, True]) def test_14(is_forth): with uproot.open(skhep_testdata.data_path("uproot-issue-123a.root")) as file: @@ -203,6 +227,8 @@ def test_14(is_forth): assert py[0][0][-1] == pytest.approx(0.4663555920124054) # py[-1] == assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None @pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @@ -216,6 +242,8 @@ def test_15(is_forth): assert py[1][-1][-1]["m_persKey"] == 980095599 # py[-1] == > (version 1) at 0x7fb9b9d24c10>], ...] at 0x7fb9b9d29250> assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None @pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @@ -229,6 +257,8 @@ def test_16(is_forth): assert py[1][0]["m_persKey"][0] == 980095599 # py[-1] == > (version 1) at 0x7f6e29be5cd0>], ...] at 0x7f6e29bea250> assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None @pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @@ -242,6 +272,8 @@ def test_17(is_forth): assert len(py[0]) == 0 # py[-1] == assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None @pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @@ -255,6 +287,8 @@ def test_18(is_forth): assert py[0][0] == pytest.approx(70104010.0) # py[-1] == array([80860738., 80861689., 80862014., 80861709., 80861737., 80861158., 80862362., 80860821., 80862271., 80862273., 80861294., 80861860., 80862548., 80861733., 80861605., 80860467., 80860408., 80861562., 80862012., 80862350., 80861491., 80860384., 80860930., 80861541., 80861461., 80861749., 80862352., 80861813., 80861822., 80861871., 80862000., 80862255., 80862253., 80862249., 80862266., 80862248., 80862246., 80862847., 80863032., 80861952., 80861954., 80861953., 80861957., 80861951., 80861961., 80861959., 80861955., 80861994., 80862060., 80861971., 80862004., 80862002., 80862059., 80861695., 80861813., 80861967., 80862919., 80862043., 80862054., 80862044., 80862044., 80862040., 80862043., 80862037., 80862040., 80862039., 80862070., 80862042., 80862322., 80861605., 80861865., 80863034., 80862987., 80861545., 80860392., 80861003., 80861564., 80862109., 80861821., 80862083., 80861121., 80862513., 80862513., 80862731., 80861604., 80862003., 80861910., 80861854., 80862297., 80860989., 80862948., 80862075., 80862141., 80862117., 80862039., 80862114., 80862075., 80862042., 80862072., 80862439., 80862481., 80861656., 80862096., 80862215., 80862215., 80862195., 80862458., 80862432., 80861915., 80861012., 80862208., 80861885., 80861888., 80861994., 80861883., 80862194., 80861812., 80862184., 80862309., 80862297., 80862840., 80862400., 80861565., 80862226., 80862149.]) assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp.content._complete_forth_code is not None @pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @@ -268,6 +302,8 @@ def test_19(is_forth): assert py[0][-1] == 0.0 # py[-1] == array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]) assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp.content._complete_forth_code is not None @pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @@ -281,6 +317,8 @@ def test_20(is_forth): assert py[0][5] == 1 # py[-1] == array([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0], dtype=int32) assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp.content._complete_forth_code is not None @pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @@ -294,6 +332,8 @@ def test_21(is_forth): assert py[0][0] == 24 # py[-1] == array([29, 26, 22, 18, 22, 28, 28, 28, 21, 24, 28, 30, 25, 24, 30, 28, 29, 4, 21, 25, 26, 22, 23, 22, 23, 29, 23, 30, 24, 29, 31, 27, 32, 28, 30, 33, 33, 31, 29, 18, 23, 34, 21, 33, 33, 29, 37, 23, 21, 40, 25, 29, 22, 17, 31, 25, 28, 26, 21, 20, 25, 51, 38, 64, 42, 28, 29, 26, 21, 31, 22, 18, 41, 28, 29, 28, 29, 15, 25, 27, 24, 28, 28, 34, 28, 21, 19, 21, 20, 24, 26, 24, 13, 22, 30, 25, 17, 27, 24, 16, 31, 27, 29, 23, 26, 25, 26, 28, 12, 18, 30, 27, 48, 16, 25, 24, 27, 10, 21, 25, 30, 26, 26, 28, 24], dtype=uint32) assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp.content._complete_forth_code is not None @pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @@ -307,6 +347,9 @@ def test_22(is_forth): assert py[0][2] == 0.0 # py[-1] == array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]) assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp.content._complete_forth_code is not None + @pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @@ -320,6 +363,8 @@ def test_23(is_forth): assert len(py[0][0]) == 0 # py[-1] == array([, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ], dtype=object) assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None @pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @@ -333,6 +378,8 @@ def test_24(is_forth): assert py[0][1][-1] == 5 # py[-1] == array([, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ], dtype=object) assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None @pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @@ -346,6 +393,8 @@ def test_25(is_forth): assert py[0][-1] == "numuCCAnalysis" # py[-1] == array(['psychePolicy', 'psycheEventModel', 'psycheCore', 'psycheUtils', 'psycheND280Utils', 'psycheIO', 'psycheSelections', 'psycheSystematics', 'highlandEventModel', 'highlandTools', 'highlandCore', 'highlandCorrections', 'highlandIO', 'baseAnalysis', 'baseTrackerAnalysis', 'numuCCAnalysis'], dtype=object) assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None def test_26(): @@ -367,6 +416,8 @@ def test_27(is_forth): assert py[0][0][-1] == "muFGD+Np" # py[-1] == array([], dtype=object) assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None @pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @@ -380,6 +431,8 @@ def test_28(is_forth): assert py[0][0][-1] == 10 # py[-1] == array([], dtype=object) assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None def test_29(): @@ -401,9 +454,11 @@ def test_30(is_forth): assert len(py[0]) == 0 # py[-1] == array(['HLT_2j35_bmv2c2060_split_2j35_L14J15.0ETA25', 'HLT_j100_2j55_bmv2c2060_split'], dtype=object) assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None + -@pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @pytest.mark.parametrize("is_forth", [False, True]) def test_31(is_forth): with uproot.open(skhep_testdata.data_path("uproot-issue-308.root")) as file: @@ -414,9 +469,11 @@ def test_31(is_forth): assert py[0][0][-1] == 2428801822 # py[-1] == assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None + -@pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @pytest.mark.parametrize("is_forth", [False, True]) def test_32(is_forth): with uproot.open(skhep_testdata.data_path("uproot-issue31.root")) as file: @@ -427,6 +484,8 @@ def test_32(is_forth): assert py[-1] == "two" # py[-1] == "two" assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None @pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @@ -440,9 +499,11 @@ def test_33(is_forth): assert py[0][4]["1"][-1] == 1.0 # py[-1] == assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None + -@pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @pytest.mark.parametrize("is_forth", [False, True]) def test_34(is_forth): with uproot.open(skhep_testdata.data_path("uproot-issue371.root")) as file: @@ -452,6 +513,8 @@ def test_34(is_forth): py = branch.array(interp, library="ak", entry_stop=2) assert py[-1] == "$Name: geant4-10-05-patch-01 $" assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None @pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @@ -465,6 +528,8 @@ def test_35(is_forth): assert py[0, "1", 0, "name"] == "anti_alpha" # py[-1] == , ...} at 0x7fb557a012e0> assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None @pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @@ -478,6 +543,8 @@ def test_36(is_forth): assert py[0][-1] == "MP_F_99." # py[-1] == assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None @pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @@ -491,6 +558,8 @@ def test_37(is_forth): assert py[0][555]["fZ"] == 100.94856572890848 # py[-1] == array([, , , ..., , , ], dtype=object) assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None @pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @@ -504,6 +573,8 @@ def test_38(is_forth): assert py[0]["zp"][0] == pytest.approx(0.9999998807907104) # py[-1] == (version 4) at 0x7f9be2f7b2e0> assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None @pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @@ -517,6 +588,8 @@ def test_39(is_forth): assert py[-1][1]["0"] == -1000020030 # py[-1] == , ...} at 0x7f6d057397f0> assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None @pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @@ -530,6 +603,8 @@ def test_40(is_forth): assert py[0]["fDatime"] == 1749155840 # py[-1] == assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None @pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @@ -543,6 +618,8 @@ def test_41(is_forth): assert len(py[0]) == 0 # py[-1] == assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None @pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @@ -556,6 +633,8 @@ def test_42(is_forth): assert len(py[0]) == 0 # py[-1] == assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None @pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @@ -569,6 +648,8 @@ def test_43(is_forth): assert len(py[0]) == 0 # py[-1] == assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None @pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @@ -582,6 +663,8 @@ def test_44(is_forth): assert py[0]["ArrayBool"][-1] == True # py[-1] == assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None def test_45(): @@ -611,6 +694,8 @@ def test_47(is_forth): assert py[-1][-1]["1"]["mass"] == pytest.approx(3.727379) # py[-1] == , ...} at 0x7f53a44278b0> assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None def test_48(): @@ -652,6 +737,8 @@ def test_51(is_forth): py = branch.array(interp, library="ak", entry_stop=2) assert py[-1][0] == "GENIE:fixed@density-fixed" assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None @pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @@ -665,6 +752,8 @@ def test_52(is_forth): assert py[1][-1]["refs"][-1] == 2223 # py[-1] == array([, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ], dtype=object) assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None @pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @@ -678,6 +767,8 @@ def test_53(is_forth): assert py[0][-1]["fE"] == 0.0 # py[-1] == array([, , , , , ], dtype=object) assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None @pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @@ -691,9 +782,11 @@ def test_54(is_forth): assert py[0][-1][4]["fE"] == 0.0 # py[-1] == array([[, , , , ], [, , , , ], [, , , , ], [, , , , ], [, , , , ], [, , , , ]], dtype=object) assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None + -@pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @pytest.mark.parametrize("is_forth", [False, True]) def test_55(is_forth): with uproot.open(skhep_testdata.data_path("uproot-issue519.root")) as file: @@ -704,6 +797,8 @@ def test_55(is_forth): assert py[-1][1][5] == pytest.approx(0.346174418926239) # py[-1] == assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None @pytest.mark.skip(reason="AwkwardForth generation not implemented for this case.") @@ -719,6 +814,8 @@ def test_56(is_forth): assert py[1]["SliceU64"][0] == 1 # py[-1] == assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None @pytest.mark.parametrize("is_forth", [False, True]) @@ -1036,11 +1133,11 @@ def test_79(is_forth): interp = uproot.interpretation.identify.interpretation_of(branch, {}, False) interp._forth = is_forth py = branch.array(interp, library="ak", entry_stop=2) - if is_forth: - assert interp._complete_forth_code is not None assert py[1, 1, "1"] == "TWO" # py[-1] == assert py.layout.form == interp.awkward_form(branch.file) + if is_forth: + assert interp._complete_forth_code is not None @pytest.mark.parametrize("is_forth", [False, True])