Changeset f676b84 for src/tests


Ignore:
Timestamp:
Aug 25, 2017, 10:47:42 AM (8 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
19a9822, 6b224a52, f22b7aef
Parents:
ddf8a29 (diff), 3eab308c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:/u/cforall/software/cfa/cfa-cc

Location:
src/tests
Files:
3 added
6 edited
1 moved

Legend:

Unmodified
Added
Removed
  • src/tests/.expect/gmp.txt

    rddf8a29 rf676b84  
    272716666666666666666666, 2 16666666666666666666, 2
    2828x:16666666666666666666 y:2
     29
     3012345678901234567890123456789 12345678901234567890123456789 12345678901234567890123456789
    2931
    3032Fibonacci Numbers
  • src/tests/fstream_test.c

    rddf8a29 rf676b84  
    77// fstream_test.c --
    88//
    9 // Author           : Richard C. Bilson
     9// Author           : Peter A. Buhr
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon May  2 15:25:54 2016
    13 // Update Count     : 61
     12// Last Modified On : Thu Aug 24 11:30:26 2017
     13// Update Count     : 65
    1414//
    1515
     
    1919        int nombre;
    2020        sout | "Entrez un nombre, s'il vous plaît:" | endl;
    21         sin  | &nombre;
    22         sout | "Vous avez entré" | nombre | "stocké à l'adresse" | &nombre | endl;
    23         sout | "nombre" | nombre | "est"
    24                  | (nombre > 0 ? "plus grand que" : nombre == 0 ? "égal à" : "moins de")
    25                  | "zéro" | endl;
     21        sin  | nombre;
     22        sout | "Vous avez entré" | nombre | endl;
     23        sout | "le nombre" | nombre | "est"
     24                 | (nombre > 0 ? "positif" : nombre == 0 ? "zéro" : "négatif") | endl;
    2625
    2726        sout | "Entrez trois nombres, s'il vous plaît: " | endl;
    2827        int i, j, k;
    29         sin  | &i | &j | &k;
     28        sin  | i | j | k;
    3029        sout | "Vous avez entré" | "i:" | "" | i | "j:" | "" | j | "k:" | "" | k | endl;
    3130}
  • src/tests/gmp.c

    rddf8a29 rf676b84  
    1010// Created On       : Tue Apr 19 08:55:51 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Jul 13 16:35:01 2017
    13 // Update Count     : 541
     12// Last Modified On : Thu Aug 24 09:33:26 2017
     13// Update Count     : 543
    1414//
    1515
     
    7070        sout | endl;
    7171
     72        sin | x | y | z;
     73        sout | x | y | z | endl;
     74
     75        sout | endl;
     76
    7277        sout | "Fibonacci Numbers" | endl;
    7378        Int fn, fn1, fn2;
  • src/tests/io.c

    rddf8a29 rf676b84  
    1010// Created On       : Wed Mar  2 16:56:02 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Jul  6 23:26:12 2017
    13 // Update Count     : 78
     12// Last Modified On : Wed Aug 23 21:27:50 2017
     13// Update Count     : 79
    1414//
    1515
     
    8989
    9090        sout | "input bacis types" | endl;
    91         &in | &c                                                                                        // character
    92                 | &si | &usi | &i | &ui | &li | &uli | &lli | &ulli     // integral
    93                 | &f | &d | &ld                                                                 // floating point
    94                 | &fc | &dc | &ldc                                                              // floating-point complex
     91        &in | c                                                                                         // character
     92                | si | usi | i | ui | li | uli | lli | ulli             // integral
     93                | f | d | ld                                                                    // floating point
     94                | fc | dc | ldc                                                                 // floating-point complex
    9595                | cstr( s1 ) | cstr( s2, size );                                // C string, length unchecked and checked
    9696        sout | endl;
  • src/tests/rational.c

    rddf8a29 rf676b84  
    1010// Created On       : Mon Mar 28 08:43:12 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed May 17 15:46:35 2017
    13 // Update Count     : 65
     12// Last Modified On : Wed Aug 23 21:40:11 2017
     13// Update Count     : 66
    1414//
    1515
     
    9292        sout | x | endl;
    9393
    94         sin | &a | &b;
     94        sin | a | b;
    9595        sout | a | b | endl;
    9696} // main
  • src/tests/test.py

    rddf8a29 rf676b84  
    174174        if make_ret == 0 :
    175175                # fetch optional input
    176                 stdinput = "< .in/%s.txt" % test.name if isfile(".in/%s.txt" % test.path) else ""
     176                stdinput = "< .in/%s.txt" % test.name if isfile(".in/%s.txt" % test.name) else ""
    177177
    178178                if fileIsExecutable(test.name) :
  • src/tests/vector/vector_test.c

    rddf8a29 rf676b84  
    99// Author           : Richard C. Bilson
    1010// Created On       : Wed May 27 17:56:53 2015
    11 // Last Modified By : Rob Schluntz
    12 // Last Modified On : Wed Apr 27 17:31:27 2016
    13 // Update Count     : 18
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Thu Aug 24 08:15:38 2017
     13// Update Count     : 19
    1414//
    1515
     
    2727        sout | "enter N elements and C-d on a separate line:" | endl;
    2828        for ( ;; ) {
    29                 sin | &num;
     29                sin | num;
    3030          if ( fail( sin ) || eof( sin ) ) break;
    3131                append( &vec, num );
Note: See TracChangeset for help on using the changeset viewer.