|
1874 | 1874 | "input": "expand/li10-in.jsonld",
|
1875 | 1875 | "expect": "expand/li10-out.jsonld"
|
1876 | 1876 | }, {
|
1877 |
| - "@id": "#tpr01", |
| 1877 | + "@id": "#tpr01e", |
1878 | 1878 | "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"],
|
1879 |
| - "name": "Protect a term", |
1880 |
| - "purpose": "Protected Contexts", |
| 1879 | + "name": "Protected a term (error mode)", |
| 1880 | + "purpose": "Check 'error' mode when overriding a protected term. (error mode)", |
1881 | 1881 | "option": {"specVersion": "json-ld-1.1"},
|
1882 | 1882 | "input": "expand/pr01-in.jsonld",
|
1883 | 1883 | "expect": "protected term redefinition"
|
| 1884 | + }, { |
| 1885 | + "@id": "#tpr01w", |
| 1886 | + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], |
| 1887 | + "name": "Protected a term (warn mode)", |
| 1888 | + "purpose": "Check 'warn' mode when overriding a protected term. (warn mode)", |
| 1889 | + "option": {"specVersion": "json-ld-1.1", "protectedMode": "warn"}, |
| 1890 | + "input": "expand/pr01-in.jsonld", |
| 1891 | + "expect": "expand/pr01-out.jsonld" |
1884 | 1892 | }, {
|
1885 | 1893 | "@id": "#tpr02",
|
1886 | 1894 | "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"],
|
|
1890 | 1898 | "input": "expand/pr02-in.jsonld",
|
1891 | 1899 | "expect": "expand/pr02-out.jsonld"
|
1892 | 1900 | }, {
|
1893 |
| - "@id": "#tpr03", |
| 1901 | + "@id": "#tpr03e", |
1894 | 1902 | "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"],
|
1895 |
| - "name": "Protect all terms in context", |
1896 |
| - "purpose": "A protected context protects all term definitions.", |
| 1903 | + "name": "Protect all terms in context (error mode)", |
| 1904 | + "purpose": "A protected context protects all term definitions. (error mode)", |
1897 | 1905 | "option": {"specVersion": "json-ld-1.1"},
|
1898 | 1906 | "input": "expand/pr03-in.jsonld",
|
1899 | 1907 | "expect": "protected term redefinition"
|
1900 | 1908 | }, {
|
1901 |
| - "@id": "#tpr04", |
| 1909 | + "@id": "#tpr03w", |
| 1910 | + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], |
| 1911 | + "name": "Protect all terms in context (warn mode)", |
| 1912 | + "purpose": "A protected context protects all term definitions. (warn mode)", |
| 1913 | + "option": {"specVersion": "json-ld-1.1", "protectedMode": "warn"}, |
| 1914 | + "input": "expand/pr03-in.jsonld", |
| 1915 | + "expect": "expand/pr03-out.jsonld" |
| 1916 | + }, { |
| 1917 | + "@id": "#tpr04e", |
1902 | 1918 | "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"],
|
1903 |
| - "name": "Do not protect term with @protected: false", |
1904 |
| - "purpose": "A protected context does not protect terms with @protected: false.", |
| 1919 | + "name": "Do not protect term with @protected: false (error mode)", |
| 1920 | + "purpose": "A protected context does not protect terms with @protected: false. (error mode)", |
1905 | 1921 | "option": {"specVersion": "json-ld-1.1"},
|
1906 | 1922 | "input": "expand/pr04-in.jsonld",
|
1907 | 1923 | "expect": "protected term redefinition"
|
1908 | 1924 | }, {
|
1909 |
| - "@id": "#tpr05", |
| 1925 | + "@id": "#tpr04w", |
| 1926 | + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], |
| 1927 | + "name": "Do not protect term with @protected: false (warn mode)", |
| 1928 | + "purpose": "A protected context does not protect terms with @protected: false. (warn mode)", |
| 1929 | + "option": {"specVersion": "json-ld-1.1", "protectedMode": "warn"}, |
| 1930 | + "input": "expand/pr04-in.jsonld", |
| 1931 | + "expect": "expand/pr04-out.jsonld" |
| 1932 | + }, { |
| 1933 | + "@id": "#tpr05e", |
1910 | 1934 | "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"],
|
1911 |
| - "name": "Clear active context with protected terms from an embedded context", |
1912 |
| - "purpose": "The Active context be set to null from an embedded context.", |
| 1935 | + "name": "Clear active context with protected terms from an embedded context (error mode)", |
| 1936 | + "purpose": "The Active context be set to null from an embedded context. (error mode)", |
1913 | 1937 | "option": {"specVersion": "json-ld-1.1"},
|
1914 | 1938 | "input": "expand/pr05-in.jsonld",
|
1915 | 1939 | "expect": "invalid context nullification"
|
| 1940 | + }, { |
| 1941 | + "@id": "#tpr05w", |
| 1942 | + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], |
| 1943 | + "name": "Clear active context with protected terms from an embedded context (warn mode)", |
| 1944 | + "purpose": "The Active context be set to null from an embedded context. (warn mode)", |
| 1945 | + "option": {"specVersion": "json-ld-1.1", "protectedMode": "warn"}, |
| 1946 | + "input": "expand/pr05-in.jsonld", |
| 1947 | + "expect": "expand/pr05-out.jsonld" |
1916 | 1948 | }, {
|
1917 | 1949 | "@id": "#tpr06",
|
1918 | 1950 | "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"],
|
|
1922 | 1954 | "input": "expand/pr06-in.jsonld",
|
1923 | 1955 | "expect": "expand/pr06-out.jsonld"
|
1924 | 1956 | }, {
|
1925 |
| - "@id": "#tpr08", |
| 1957 | + "@id": "#tpr08e", |
1926 | 1958 | "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"],
|
1927 |
| - "name": "Term with protected scoped context.", |
1928 |
| - "purpose": "A scoped context can protect terms.", |
| 1959 | + "name": "Term with protected scoped context. (error mode)", |
| 1960 | + "purpose": "A scoped context can protect terms. (error mode)", |
1929 | 1961 | "option": {"specVersion": "json-ld-1.1"},
|
1930 | 1962 | "input": "expand/pr08-in.jsonld",
|
1931 | 1963 | "expect": "protected term redefinition"
|
1932 | 1964 | }, {
|
1933 |
| - "@id": "#tpr09", |
| 1965 | + "@id": "#tpr08w", |
| 1966 | + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], |
| 1967 | + "name": "Term with protected scoped context. (warn mode)", |
| 1968 | + "purpose": "A scoped context can protect terms. (warn mode)", |
| 1969 | + "option": {"specVersion": "json-ld-1.1", "protectedMode": "warn"}, |
| 1970 | + "input": "expand/pr08-in.jsonld", |
| 1971 | + "expect": "expand/pr08-out.jsonld" |
| 1972 | + }, { |
| 1973 | + "@id": "#tpr09e", |
1934 | 1974 | "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"],
|
1935 |
| - "name": "Attempt to redefine term in other protected context.", |
1936 |
| - "purpose": "A protected term cannot redefine another protected term.", |
| 1975 | + "name": "Attempt to redefine term in other protected context. (error mode)", |
| 1976 | + "purpose": "A protected term cannot redefine another protected term. (error mode)", |
1937 | 1977 | "option": {"specVersion": "json-ld-1.1"},
|
1938 | 1978 | "input": "expand/pr09-in.jsonld",
|
1939 | 1979 | "expect": "protected term redefinition"
|
| 1980 | + }, { |
| 1981 | + "@id": "#tpr09w", |
| 1982 | + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], |
| 1983 | + "name": "Attempt to redefine term in other protected context. (warn mode)", |
| 1984 | + "purpose": "A protected term cannot redefine another protected term. (warn mode)", |
| 1985 | + "option": {"specVersion": "json-ld-1.1", "protectedMode": "warn"}, |
| 1986 | + "input": "expand/pr09-in.jsonld", |
| 1987 | + "expect": "expand/pr09-out.jsonld" |
1940 | 1988 | }, {
|
1941 | 1989 | "@id": "#tpr10",
|
1942 | 1990 | "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"],
|
1943 |
| - "name": "", |
1944 |
| - "purpose": "", |
| 1991 | + "name": "Simple protected and unprotected terms.", |
| 1992 | + "purpose": "Simple protected and unprotected terms.", |
1945 | 1993 | "option": {"specVersion": "json-ld-1.1"},
|
1946 | 1994 | "input": "expand/pr10-in.jsonld",
|
1947 | 1995 | "expect": "expand/pr10-out.jsonld"
|
1948 | 1996 | }, {
|
1949 |
| - "@id": "#tpr11", |
| 1997 | + "@id": "#tpr11e", |
1950 | 1998 | "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"],
|
1951 |
| - "name": "", |
1952 |
| - "purpose": "", |
| 1999 | + "name": "Fail to override protected term. (error mode)", |
| 2000 | + "purpose": "Fail to override protected term. (error mode)", |
1953 | 2001 | "option": {"specVersion": "json-ld-1.1"},
|
1954 | 2002 | "input": "expand/pr11-in.jsonld",
|
1955 | 2003 | "expect": "protected term redefinition"
|
1956 | 2004 | }, {
|
1957 |
| - "@id": "#tpr12", |
| 2005 | + "@id": "#tpr11w", |
| 2006 | + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], |
| 2007 | + "name": "Fail to override protected term. (warn mode)", |
| 2008 | + "purpose": "Fail to override protected term. (warn mode)", |
| 2009 | + "option": {"specVersion": "json-ld-1.1", "protectedMode": "warn"}, |
| 2010 | + "input": "expand/pr11-in.jsonld", |
| 2011 | + "expect": "expand/pr11-out.jsonld" |
| 2012 | + }, { |
| 2013 | + "@id": "#tpr12e", |
1958 | 2014 | "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"],
|
1959 |
| - "name": "", |
1960 |
| - "purpose": "", |
| 2015 | + "name": "Scoped context fail to override protected term. (error mode)", |
| 2016 | + "purpose": "Scoped context fail to override protected term. (error mode)", |
1961 | 2017 | "option": {"specVersion": "json-ld-1.1"},
|
1962 | 2018 | "input": "expand/pr12-in.jsonld",
|
1963 | 2019 | "expect": "protected term redefinition"
|
| 2020 | + }, { |
| 2021 | + "@id": "#tpr12w", |
| 2022 | + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], |
| 2023 | + "name": "Scoped context fail to override protected term. (warn mode)", |
| 2024 | + "purpose": "Scoped context fail to override protected term. (warn mode)", |
| 2025 | + "option": {"specVersion": "json-ld-1.1", "protectedMode": "warn"}, |
| 2026 | + "input": "expand/pr12-in.jsonld", |
| 2027 | + "expect": "expand/pr12-out.jsonld" |
1964 | 2028 | }, {
|
1965 | 2029 | "@id": "#tpr13",
|
1966 | 2030 | "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"],
|
1967 |
| - "name": "", |
1968 |
| - "purpose": "", |
| 2031 | + "name": "Override unprotected term.", |
| 2032 | + "purpose": "Override unprotected term.", |
1969 | 2033 | "option": {"specVersion": "json-ld-1.1"},
|
1970 | 2034 | "input": "expand/pr13-in.jsonld",
|
1971 | 2035 | "expect": "expand/pr13-out.jsonld"
|
1972 | 2036 | }, {
|
1973 | 2037 | "@id": "#tpr14",
|
1974 | 2038 | "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"],
|
1975 |
| - "name": "", |
1976 |
| - "purpose": "", |
| 2039 | + "name": "Clear protection with null context.", |
| 2040 | + "purpose": "Clear protection with null context.", |
1977 | 2041 | "option": {"specVersion": "json-ld-1.1"},
|
1978 | 2042 | "input": "expand/pr14-in.jsonld",
|
1979 | 2043 | "expect": "expand/pr14-out.jsonld"
|
1980 | 2044 | }, {
|
1981 | 2045 | "@id": "#tpr15",
|
1982 |
| - "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], |
1983 |
| - "name": "", |
1984 |
| - "purpose": "", |
| 2046 | + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], |
| 2047 | + "name": "Clear protection with array with null context", |
| 2048 | + "purpose": "Clear protection with array with null context", |
1985 | 2049 | "option": {"specVersion": "json-ld-1.1"},
|
1986 | 2050 | "input": "expand/pr15-in.jsonld",
|
1987 |
| - "expect": "invalid context nullification" |
| 2051 | + "expect": "expand/pr15-out.jsonld" |
1988 | 2052 | }, {
|
1989 | 2053 | "@id": "#tpr16",
|
1990 |
| - "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], |
1991 |
| - "name": "", |
1992 |
| - "purpose": "", |
| 2054 | + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], |
| 2055 | + "name": "Override protected terms after null.", |
| 2056 | + "purpose": "Override protected terms after null.", |
1993 | 2057 | "option": {"specVersion": "json-ld-1.1"},
|
1994 | 2058 | "input": "expand/pr16-in.jsonld",
|
| 2059 | + "expect": "expand/pr16-out.jsonld" |
| 2060 | + }, { |
| 2061 | + "@id": "#tpr17e", |
| 2062 | + "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], |
| 2063 | + "name": "Fail to override protected terms with type. (error mode)", |
| 2064 | + "purpose": "Fail to override protected terms with type. (error mode)", |
| 2065 | + "option": {"specVersion": "json-ld-1.1"}, |
| 2066 | + "input": "expand/pr17-in.jsonld", |
| 2067 | + "expect": "invalid context nullification" |
| 2068 | + }, { |
| 2069 | + "@id": "#tpr17w", |
| 2070 | + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], |
| 2071 | + "name": "Fail to override protected terms with type. (warn mode)", |
| 2072 | + "purpose": "Fail to override protected terms with type. (warn mode)", |
| 2073 | + "option": {"specVersion": "json-ld-1.1", "protectedMode": "warn"}, |
| 2074 | + "input": "expand/pr17-in.jsonld", |
| 2075 | + "expect": "expand/pr17-out.jsonld" |
| 2076 | + }, { |
| 2077 | + "@id": "#tpr18e", |
| 2078 | + "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], |
| 2079 | + "name": "Fail to override protected terms with type+null+ctx. (error mode)", |
| 2080 | + "purpose": "Fail to override protected terms with type+null+ctx. (error mode)", |
| 2081 | + "option": {"specVersion": "json-ld-1.1"}, |
| 2082 | + "input": "expand/pr18-in.jsonld", |
1995 | 2083 | "expect": "invalid context nullification"
|
| 2084 | + }, { |
| 2085 | + "@id": "#tpr18w", |
| 2086 | + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], |
| 2087 | + "name": "Fail to override protected terms with type+null+ctx. (warn mode)", |
| 2088 | + "purpose": "Fail to override protected terms with type+null+ctx. (warn mode)", |
| 2089 | + "option": {"specVersion": "json-ld-1.1", "protectedMode": "warn"}, |
| 2090 | + "input": "expand/pr18-in.jsonld", |
| 2091 | + "expect": "expand/pr18-out.jsonld" |
| 2092 | + }, { |
| 2093 | + "@id": "#tpr19", |
| 2094 | + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], |
| 2095 | + "name": "Mix of protected and unprotected terms.", |
| 2096 | + "purpose": "Mix of protected and unprotected terms.", |
| 2097 | + "option": {"specVersion": "json-ld-1.1"}, |
| 2098 | + "input": "expand/pr19-in.jsonld", |
| 2099 | + "expect": "expand/pr19-out.jsonld" |
| 2100 | + }, { |
| 2101 | + "@id": "#tpr20e", |
| 2102 | + "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], |
| 2103 | + "name": "Fail with mix of protected and unprotected terms with type+null+ctx. (error mode)", |
| 2104 | + "purpose": "Fail with mix of protected and unprotected terms with type+null+ctx. (error mode)", |
| 2105 | + "option": {"specVersion": "json-ld-1.1"}, |
| 2106 | + "input": "expand/pr20-in.jsonld", |
| 2107 | + "expect": "invalid context nullification" |
| 2108 | + }, { |
| 2109 | + "@id": "#tpr20w", |
| 2110 | + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], |
| 2111 | + "name": "Fail with mix of protected and unprotected terms with type+null+ctx. (warn mode)", |
| 2112 | + "purpose": "Fail with mix of protected and unprotected terms with type+null+ctx. (warn mode)", |
| 2113 | + "option": {"specVersion": "json-ld-1.1", "protectedMode": "warn"}, |
| 2114 | + "input": "expand/pr20-in.jsonld", |
| 2115 | + "expect": "expand/pr20-out.jsonld" |
| 2116 | + }, { |
| 2117 | + "@id": "#tpr21e", |
| 2118 | + "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], |
| 2119 | + "name": "Fail with mix of protected and unprotected terms with type+null. (error mode)", |
| 2120 | + "purpose": "Fail with mix of protected and unprotected terms with type+null. (error mode)", |
| 2121 | + "option": {"specVersion": "json-ld-1.1"}, |
| 2122 | + "input": "expand/pr21-in.jsonld", |
| 2123 | + "expect": "invalid context nullification" |
| 2124 | + }, { |
| 2125 | + "@id": "#tpr21w", |
| 2126 | + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], |
| 2127 | + "name": "Fail with mix of protected and unprotected terms with type+null. (warn mode)", |
| 2128 | + "purpose": "Fail with mix of protected and unprotected terms with type+null. (warn mode)", |
| 2129 | + "option": {"specVersion": "json-ld-1.1", "protectedMode": "warn"}, |
| 2130 | + "input": "expand/pr21-in.jsonld", |
| 2131 | + "expect": "expand/pr21-out.jsonld" |
1996 | 2132 | }, {
|
1997 | 2133 | "@id": "#ttn01",
|
1998 | 2134 | "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"],
|
|
0 commit comments