Introduction
Introduction Statistics Contact Development Disclaimer Help
remove unused tests - ics2txt - convert icalendar .ics file to plain text
git clone git://bitreich.org/ics2txt git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws…
Log
Files
Refs
Tags
README
---
commit 3b9f2bbdc0b786d3732555f8e7a001f40eaa59c6
parent 94173d57d064a613633e0cdd0b1a6da35d28fee8
Author: Josuah Demangeon <[email protected]>
Date: Thu, 24 Jun 2021 23:57:31 +0200
remove unused tests
Diffstat:
D test/map.c | 18 ------------------
M test/random-ics.awk | 9 +++------
2 files changed, 3 insertions(+), 24 deletions(-)
---
diff --git a/test/map.c b/test/map.c
@@ -1,18 +0,0 @@
-#include <string.h>
-#include <stdio.h>
-
-#include "map.h"
-
-int main(int argc, char **argv) {
- struct map map;
-
- memset(&map, 0, sizeof(map));
-
- for (argv++; *argv != NULL; argv++)
- if (map_set(&map, *argv, "abra") < 0)
- return 1;
-
- fprintf(stdout, ".");
-
- return 0;
-}
diff --git a/test/random-ics.awk b/test/random-ics.awk
@@ -16,8 +16,9 @@ BEGIN {
}
first = 0
+ data | getline
col = random(26) + 1
- out = substr($0, 1, col)
+ out = "X-"substr($0, 1, col)
$0 = substr($0, col + 1)
n = random(30)
for (i = 0; i <= n; i++) {
@@ -25,14 +26,10 @@ BEGIN {
if (length($0) < col)
continue
eq = random(int(col / 2)) + 1
- out = out substr($0, 1, eq) "=" substr($1, eq + 1, col…
+ out = out ";" substr($0, 1, eq) "=" substr($1, eq + 1,…
$0 = substr($0, col + 1)
}
out = out $0 ":"
- data | getline
- out = out $0
- if (out ~ "\n" || out !~ ":")
- exit(1)
print(out)
}
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.