You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect the ut optional token to work even if there are not the same number of arguments (because that arg would be optional). Below is an example that I would expect to pass.
Names Default To Here( 0 );
ut global reporter = ut streaming log reporter();
dt = Open( "$SAMPLE_DATA\Big Class.jmp" );
gb = dt << Run Script( "Graph Builder Smoother Line" );
ut assert that(
Expr( gb << get script ),
ut expression matches(
Expr(
Graph Builder(
ut optional( size( ut wild(), ut wild() ) ),
Show Control Panel( 0 ),
Variables( X( :height ), Y( :weight ), Overlay( :sex ) ),
Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) )
)
)
)
);
I wrote this matcher a long time ago, so I am not sure what the behavior was meant to be, but I think it is supposed to support this.
The text was updated successfully, but these errors were encountered:
I would expect the
ut optional
token to work even if there are not the same number of arguments (because that arg would be optional). Below is an example that I would expect to pass.I wrote this matcher a long time ago, so I am not sure what the behavior was meant to be, but I think it is supposed to support this.
The text was updated successfully, but these errors were encountered: