T-TEST: Allow both CIN and CI on CRITERIA.
authorBen Pfaff <blp@cs.stanford.edu>
Fri, 31 Jul 2015 15:35:04 +0000 (08:35 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Fri, 31 Jul 2015 15:35:04 +0000 (08:35 -0700)
Upon reading the bug report further, I see that it says that SPSS also
allows both forms.

Bug #45664.

src/language/stats/t-test-parser.c

index 6b14adbdb35ff4c6b072583a54c1ba2104f730ce..138969f8bf4f3d3437733fc53e9d2a34393b2c97 100644 (file)
@@ -272,7 +272,7 @@ cmd_t_test (struct lexer *lexer, struct dataset *ds)
       else if (lex_match_id (lexer, "CRITERIA"))
        {
           lex_match (lexer, T_EQUALS);
-         if ( lex_force_match_id (lexer, "CI"))
+         if ( lex_match_id (lexer, "CIN") || lex_force_match_id (lexer, "CI"))
            if ( lex_force_match (lexer, T_LPAREN))
              {
                lex_force_num (lexer);