Commit abd2e0cf authored by Jesse McGrew's avatar Jesse McGrew
Browse files

Fixed PROPDEF not accepting <> in place of the length token.

parent 3de1bdeb15d7
......@@ -321,6 +321,7 @@ namespace Zilf.ZModel.Values
break;
case ZilFalse _:
case ZilForm form when form.IsEmpty:
outputs.Add(new OutputElement(OutputElementType.Length, constant));
break;
......
......@@ -352,6 +352,16 @@ namespace Zilf.Tests.Integration
"<=? ,H-INCHES 2>");
}
[TestMethod]
public void PROPDEF_With_Empty_FORM_For_Length_Should_Work()
{
AssertGlobals(
"<PROPDEF HEIGHT <> " +
" (HEIGHT FEET:FIX FT INCHES:FIX = <> (H-FEET <WORD .FEET>) (H-INCHES <BYTE .INCHES>))>")
.Compiles();
}
[TestMethod]
public void PROPDEF_For_DIRECTIONS_Should_Be_Used_For_All_Directions()
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment