Skip to content

Commit

Permalink
docs(generics): add test for MemberWidth example (#21923)
Browse files Browse the repository at this point in the history
This PR fixes failing spectests that started after
#21902. This commit was
supposed to be part of that PR, but didn't get pushed prior to it being
merged due to user error (It was ME!)

The test was missing the command-line execopts and known good output to
compare.

TESTING:

- [x] `make spectests` and test `MemberWidth.chpl`

reviewed by @mppf
  • Loading branch information
arezaii authored Mar 17, 2023
2 parents 2ca4753 + d84f3a5 commit a5d4cf0
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions doc/rst/language/spec/generics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -815,8 +815,18 @@ instead.
writeln(r.type:string);
}
Running this example with ``--sbig=true`` will print out ``R(64)``, and with
``--sbig=false`` or no argument it will print out ``R(32)``.
.. BLOCK-test-chapelexecopts
-sbig=true
.. BLOCK-test-chapeloutput
R(64)
Running this example with ``-sbig=true`` will print out ``R(64)``, and with
``-sbig=false`` or no argument it will print out ``R(32)``.

.. _Fields_without_Types:

Expand Down

0 comments on commit a5d4cf0

Please sign in to comment.