Project

General

Profile

Bug #3154 » test.c

test case - Bernardo Signori, 2012-09-05 02:06 PM

 
1
#include <stdio.h>
2
#include <string.h>
3
#include <locale.h>
4
#include <ctype.h>
5

    
6
int main() {
7
  setlocale(LC_CTYPE, "en_US.UTF-8");
8
  unsigned char a = 0x80;
9
  printf("tolower test ");
10
  if(tolower(a) == 0) {
11
    printf("FAIL\n");
12
  }
13
  else {
14
    printf("PASS\n");
15
  }
16
  printf("toupper test ");
17
  if(toupper(a) == 0) {
18
    printf("FAIL\n");
19
  }
20
  else {
21
    printf("PASS\n");
22
  }
23

    
24
  return 0;
25
}
(1-1/2)