def test_fscanf_2(self):
    create_test_file('a.txt', '1/2/3 4/5/6 7/8/9\n')
    self.emcc_args += ['--embed-file', 'a.txt']
    self.do_run('#include <cstdio>\n#include <iostream>\n\nusing namespace std;\n\nint\nmain( int argv, char ** argc ) {\n    cout << "fscanf test" << endl;\n\n    FILE * file;\n    file = fopen("a.txt", "rb");\n    int vertexIndex[4];\n    int normalIndex[4];\n    int uvIndex[4];\n\n    int matches = fscanf(file, "%d/%d/%d %d/%d/%d %d/%d/%d %d/%d/%d\\n", &vertexIndex[0], &uvIndex[0], &normalIndex[0], &vertexIndex    [1], &uvIndex[1], &normalIndex[1], &vertexIndex[2], &uvIndex[2], &normalIndex[2], &vertexIndex[3], &uvIndex[3], &normalIndex[3]);\n\n    cout << matches << endl;\n\n    return 0;\n}\n', 'fscanf test\n9\n')
def test_fscanf_2(self):
    create_test_file('a.txt', '1/2/3 4/5/6 7/8/9\n')
    self.emcc_args += ['--embed-file', 'a.txt']
    self.do_run('#include <cstdio>\n#include <iostream>\n\nusing namespace std;\n\nint\nmain( int argv, char ** argc ) {\n    cout << "fscanf test" << endl;\n\n    FILE * file;\n    file = fopen("a.txt", "rb");\n    int vertexIndex[4];\n    int normalIndex[4];\n    int uvIndex[4];\n\n    int matches = fscanf(file, "%d/%d/%d %d/%d/%d %d/%d/%d %d/%d/%d\\n", &vertexIndex[0], &uvIndex[0], &normalIndex[0], &vertexIndex    [1], &uvIndex[1], &normalIndex[1], &vertexIndex[2], &uvIndex[2], &normalIndex[2], &vertexIndex[3], &uvIndex[3], &normalIndex[3]);\n\n    cout << matches << endl;\n\n    return 0;\n}\n', 'fscanf test\n9\n')