projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PsppireEncodingSelector: Add comment
[pspp]
/
tests
/
libpspp
/
stringi-map-test.c
diff --git
a/tests/libpspp/stringi-map-test.c
b/tests/libpspp/stringi-map-test.c
index a8dd9dd6b7068049a377a8f56c23b4282262a58a..20b8ce5c2c8e85039be225bae5b377be1d94e19b 100644
(file)
--- a/
tests/libpspp/stringi-map-test.c
+++ b/
tests/libpspp/stringi-map-test.c
@@
-1,5
+1,5
@@
/* PSPP - a program for statistical analysis.
/* PSPP - a program for statistical analysis.
- Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2007, 2008, 2009, 2010
, 2012, 2014
Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-39,6
+39,7
@@
#include "libpspp/hash-functions.h"
#include "libpspp/compiler.h"
#include "libpspp/hash-functions.h"
#include "libpspp/compiler.h"
+#include "libpspp/i18n.h"
#include "libpspp/str.h"
#include "libpspp/string-set.h"
#include "libpspp/stringi-set.h"
#include "libpspp/str.h"
#include "libpspp/string-set.h"
#include "libpspp/stringi-set.h"
@@
-144,7
+145,7
@@
get_string (int idx)
if (*s == NULL)
{
*s = xmalloc (16);
if (*s == NULL)
{
*s = xmalloc (16);
- str_format_26adic (idx + 1, *s, 16);
+ str_format_26adic (idx + 1,
true,
*s, 16);
}
return *s;
}
}
return *s;
}
@@
-276,7
+277,7
@@
check_map_contains (struct stringi_map *map,
node = stringi_map_find_node (map, key);
check (node != NULL);
node = stringi_map_find_node (map, key);
check (node != NULL);
- check (!strcasecmp (key, stringi_map_node_get_key (node)));
+ check (!
utf8_
strcasecmp (key, stringi_map_node_get_key (node)));
check (!strcmp (value, stringi_map_node_get_value (node)));
check (node == stringi_map_insert (map, key, "012"));
check (!strcmp (value, stringi_map_node_get_value (node)));
check (node == stringi_map_insert (map, key, "012"));