-
- Downloads
Make printers use singular noun for a single element
* python/libstdcxx/v6/printers.py (num_elements): New function. (StdMapPrinter.to_string, StdSetPrinter.to_string) (StdDequePrinter.to_string, Tr1UnorderedSetPrinter.to_string) (Tr1UnorderedMapPrinter.to_string): Use num_elements. * testsuite/libstdc++-prettyprinters/cxx11.cc: Adjust expected results to use singular noun when there is only one element. * testsuite/libstdc++-prettyprinters/debug.cc: Likewise. * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Likewise. * testsuite/libstdc++-prettyprinters/simple.cc: Likewise. * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise. * testsuite/libstdc++-prettyprinters/tr1.cc: Likewise. From-SVN: r243652
Showing
- libstdc++-v3/ChangeLog 12 additions, 0 deletionslibstdc++-v3/ChangeLog
- libstdc++-v3/python/libstdcxx/v6/printers.py 13 additions, 7 deletionslibstdc++-v3/python/libstdcxx/v6/printers.py
- libstdc++-v3/testsuite/libstdc++-prettyprinters/cxx11.cc 4 additions, 4 deletionslibstdc++-v3/testsuite/libstdc++-prettyprinters/cxx11.cc
- libstdc++-v3/testsuite/libstdc++-prettyprinters/debug.cc 1 addition, 1 deletionlibstdc++-v3/testsuite/libstdc++-prettyprinters/debug.cc
- libstdc++-v3/testsuite/libstdc++-prettyprinters/debug_cxx11.cc 2 additions, 2 deletions...dc++-v3/testsuite/libstdc++-prettyprinters/debug_cxx11.cc
- libstdc++-v3/testsuite/libstdc++-prettyprinters/simple.cc 1 addition, 1 deletionlibstdc++-v3/testsuite/libstdc++-prettyprinters/simple.cc
- libstdc++-v3/testsuite/libstdc++-prettyprinters/simple11.cc 1 addition, 1 deletionlibstdc++-v3/testsuite/libstdc++-prettyprinters/simple11.cc
- libstdc++-v3/testsuite/libstdc++-prettyprinters/tr1.cc 2 additions, 2 deletionslibstdc++-v3/testsuite/libstdc++-prettyprinters/tr1.cc
Loading
Please register or sign in to comment