|
| 1 | +# Snapshot report for `__e2e__/commands/fetchtask.test.js` |
| 2 | + |
| 3 | +The actual snapshot is saved in `fetchtask.test.js.snap`. |
| 4 | + |
| 5 | +Generated by [AVA](https://ava.li). |
| 6 | + |
| 7 | +## display completed task with fetchtask key |
| 8 | + |
| 9 | +> Snapshot 1 |
| 10 | +
|
| 11 | + `[2J[0;0f[1m[31m _ _ _ ␊ |
| 12 | + | |_ ___ __ _ ___| |__ ___ ___ __| | ___ ␊ |
| 13 | + | __/ _ \\/ _` |/ __| '_ \\ / __/ _ \\ / _` |/ _ \\␊ |
| 14 | + | || __/ (_| | (__| | | | (_| (_) | (_| | __/␊ |
| 15 | + \\__\\___|\\__,_|\\___|_| |_|\\___\\___/ \\__,_|\\___|␊ |
| 16 | + [22m[39m␊ |
| 17 | + [1m[33m Learn to code effectively Powered by MadHacks[22m[39m␊ |
| 18 | + ␊ |
| 19 | + ␊ |
| 20 | + This task is already completed!␊ |
| 21 | + ␊ |
| 22 | + ␊ |
| 23 | + User: testConfig Progress: 6/30␊ |
| 24 | + ␊ |
| 25 | + ␊ |
| 26 | + Now lets focus on variables␊ |
| 27 | + Unlike other programming languages, Python has no command for declaring a variable.A variable is created the moment you first assign a value to it.␊ |
| 28 | + Also consider these variable naming conventions␊ |
| 29 | + ␊ |
| 30 | + 1.A variable name must start with a letter or the underscore character␊ |
| 31 | + 2.A variable name cannot start with a number␊ |
| 32 | + 3.A variable name can only contain alpha-numeric characters and underscores (A-z, 0-9, and _ )␊ |
| 33 | + 3.Variable names are case-sensitive (age, Age and AGE are three different variables)␊ |
| 34 | + Task 2:-␊ |
| 35 | + Consider these variable names:-␊ |
| 36 | + variable␊ |
| 37 | + sum@␊ |
| 38 | + product_of_12␊ |
| 39 | + 12_product␊ |
| 40 | + Just print out the correct variable names in order␊ |
| 41 | + ` |
| 42 | + |
| 43 | +> Snapshot 2 |
| 44 | +
|
| 45 | + `[2J[0;0f[1m[31m _ _ _ ␊ |
| 46 | + | |_ ___ __ _ ___| |__ ___ ___ __| | ___ ␊ |
| 47 | + | __/ _ \\/ _` |/ __| '_ \\ / __/ _ \\ / _` |/ _ \\␊ |
| 48 | + | || __/ (_| | (__| | | | (_| (_) | (_| | __/␊ |
| 49 | + \\__\\___|\\__,_|\\___|_| |_|\\___\\___/ \\__,_|\\___|␊ |
| 50 | + [22m[39m␊ |
| 51 | + [1m[33m Learn to code effectively Powered by MadHacks[22m[39m␊ |
| 52 | + ␊ |
| 53 | + ␊ |
| 54 | + This task is already completed!␊ |
| 55 | + ␊ |
| 56 | + ␊ |
| 57 | + User: testConfig Progress: 6/30␊ |
| 58 | + ␊ |
| 59 | + Great! Now's let's move on to variables. Variables are used to store data values ␊ |
| 60 | + Task 2:-␊ |
| 61 | + Declare a variable to store the value 18 and print the value.␊ |
| 62 | + ` |
| 63 | + |
| 64 | +## display incomplete task with fetchtask key |
| 65 | + |
| 66 | +> Snapshot 1 |
| 67 | +
|
| 68 | + `[2J[0;0f[1m[31m _ _ _ ␊ |
| 69 | + | |_ ___ __ _ ___| |__ ___ ___ __| | ___ ␊ |
| 70 | + | __/ _ \\/ _` |/ __| '_ \\ / __/ _ \\ / _` |/ _ \\␊ |
| 71 | + | || __/ (_| | (__| | | | (_| (_) | (_| | __/␊ |
| 72 | + \\__\\___|\\__,_|\\___|_| |_|\\___\\___/ \\__,_|\\___|␊ |
| 73 | + [22m[39m␊ |
| 74 | + [1m[33m Learn to code effectively Powered by MadHacks[22m[39m␊ |
| 75 | + ␊ |
| 76 | + ␊ |
| 77 | + User: testConfig Progress: 6/30␊ |
| 78 | + ␊ |
| 79 | + ␊ |
| 80 | + Awesome! Let's move on to Loops. ␊ |
| 81 | + Loop is an important statement which is used for repetition of the same code as and when required. ␊ |
| 82 | + This task will surely test what you have learnt till now from the previous tasks! ␊ |
| 83 | + ␊ |
| 84 | + Task 6 ␊ |
| 85 | + Syntax of for loop: ␊ |
| 86 | + for loop_control_variable in range(start, stop, step): ␊ |
| 87 | + Loop Body(indented)␊ |
| 88 | + Here's your task: ␊ |
| 89 | + ␊ |
| 90 | + Task- 6 ␊ |
| 91 | + Print even numbers from 1 to 10 (including 10) using for loop.␊ |
| 92 | + ` |
| 93 | + |
| 94 | +> Snapshot 2 |
| 95 | +
|
| 96 | + `[2J[0;0f[1m[31m _ _ _ ␊ |
| 97 | + | |_ ___ __ _ ___| |__ ___ ___ __| | ___ ␊ |
| 98 | + | __/ _ \\/ _` |/ __| '_ \\ / __/ _ \\ / _` |/ _ \\␊ |
| 99 | + | || __/ (_| | (__| | | | (_| (_) | (_| | __/␊ |
| 100 | + \\__\\___|\\__,_|\\___|_| |_|\\___\\___/ \\__,_|\\___|␊ |
| 101 | + [22m[39m␊ |
| 102 | + [1m[33m Learn to code effectively Powered by MadHacks[22m[39m␊ |
| 103 | + ␊ |
| 104 | + ␊ |
| 105 | + User: testConfig Progress: 6/30␊ |
| 106 | + ␊ |
| 107 | + Awesome! Let's move on to Comparison Operators. They are used to compare two values. They return true or false according to the value of their operands. They are: ==, ===, !=, >, <, >=, <=. Here's your task:␊ |
| 108 | + Task 6:-␊ |
| 109 | + Use 44 & 29 as your operands. Compare them using the Comparison operators in the same order and print the value which they return.␊ |
| 110 | + ` |
| 111 | + |
| 112 | +## display next task with fetchtask |
| 113 | + |
| 114 | +> Snapshot 1 |
| 115 | +
|
| 116 | + `[2J[0;0f[1m[31m _ _ _ ␊ |
| 117 | + | |_ ___ __ _ ___| |__ ___ ___ __| | ___ ␊ |
| 118 | + | __/ _ \\/ _` |/ __| '_ \\ / __/ _ \\ / _` |/ _ \\␊ |
| 119 | + | || __/ (_| | (__| | | | (_| (_) | (_| | __/␊ |
| 120 | + \\__\\___|\\__,_|\\___|_| |_|\\___\\___/ \\__,_|\\___|␊ |
| 121 | + [22m[39m␊ |
| 122 | + [1m[33m Learn to code effectively Powered by MadHacks[22m[39m␊ |
| 123 | + ␊ |
| 124 | + ␊ |
| 125 | + User: testConfig Progress: 6/30␊ |
| 126 | + ␊ |
| 127 | + ␊ |
| 128 | + Awesome! Let's move on to Loops. ␊ |
| 129 | + Loop is an important statement which is used for repetition of the same code as and when required. ␊ |
| 130 | + This task will surely test what you have learnt till now from the previous tasks! ␊ |
| 131 | + ␊ |
| 132 | + Task 6 ␊ |
| 133 | + Syntax of for loop: ␊ |
| 134 | + for loop_control_variable in range(start, stop, step): ␊ |
| 135 | + Loop Body(indented)␊ |
| 136 | + Here's your task: ␊ |
| 137 | + ␊ |
| 138 | + Task- 6 ␊ |
| 139 | + Print even numbers from 1 to 10 (including 10) using for loop.␊ |
| 140 | + ` |
| 141 | + |
| 142 | +> Snapshot 2 |
| 143 | +
|
| 144 | + `[2J[0;0f[1m[31m _ _ _ ␊ |
| 145 | + | |_ ___ __ _ ___| |__ ___ ___ __| | ___ ␊ |
| 146 | + | __/ _ \\/ _` |/ __| '_ \\ / __/ _ \\ / _` |/ _ \\␊ |
| 147 | + | || __/ (_| | (__| | | | (_| (_) | (_| | __/␊ |
| 148 | + \\__\\___|\\__,_|\\___|_| |_|\\___\\___/ \\__,_|\\___|␊ |
| 149 | + [22m[39m␊ |
| 150 | + [1m[33m Learn to code effectively Powered by MadHacks[22m[39m␊ |
| 151 | + ␊ |
| 152 | + ␊ |
| 153 | + User: testConfig Progress: 6/30␊ |
| 154 | + ␊ |
| 155 | + Awesome! Let's move on to Comparison Operators. They are used to compare two values. They return true or false according to the value of their operands. They are: ==, ===, !=, >, <, >=, <=. Here's your task:␊ |
| 156 | + Task 6:-␊ |
| 157 | + Use 44 & 29 as your operands. Compare them using the Comparison operators in the same order and print the value which they return.␊ |
| 158 | + ` |
| 159 | + |
| 160 | +## incorrect key for fetchtask |
| 161 | + |
| 162 | +> Snapshot 1 |
| 163 | +
|
| 164 | + `[2J[0;0f[1m[31m _ _ _ ␊ |
| 165 | + | |_ ___ __ _ ___| |__ ___ ___ __| | ___ ␊ |
| 166 | + | __/ _ \\/ _` |/ __| '_ \\ / __/ _ \\ / _` |/ _ \\␊ |
| 167 | + | || __/ (_| | (__| | | | (_| (_) | (_| | __/␊ |
| 168 | + \\__\\___|\\__,_|\\___|_| |_|\\___\\___/ \\__,_|\\___|␊ |
| 169 | + [22m[39m␊ |
| 170 | + [1m[33m Learn to code effectively Powered by MadHacks[22m[39m␊ |
| 171 | + ␊ |
| 172 | + ␊ |
| 173 | + Make sure that you've grabbed the key correctly!␊ |
| 174 | + ␊ |
| 175 | + ` |
| 176 | + |
| 177 | +## no config file for fetchtask |
| 178 | + |
| 179 | +> Snapshot 1 |
| 180 | +
|
| 181 | + `[2J[0;0f[1m[31m _ _ _ ␊ |
| 182 | + | |_ ___ __ _ ___| |__ ___ ___ __| | ___ ␊ |
| 183 | + | __/ _ \\/ _` |/ __| '_ \\ / __/ _ \\ / _` |/ _ \\␊ |
| 184 | + | || __/ (_| | (__| | | | (_| (_) | (_| | __/␊ |
| 185 | + \\__\\___|\\__,_|\\___|_| |_|\\___\\___/ \\__,_|\\___|␊ |
| 186 | + [22m[39m␊ |
| 187 | + [1m[33m Learn to code effectively Powered by MadHacks[22m[39m␊ |
| 188 | + ␊ |
| 189 | + Make sure that you are within the teachcode-solutions directory!␊ |
| 190 | + ␊ |
| 191 | + cd teachcode-solutions may resolve the issue!␊ |
| 192 | + ␊ |
| 193 | + ` |
| 194 | + |
| 195 | +## no more tasks available |
| 196 | + |
| 197 | +> Snapshot 1 |
| 198 | +
|
| 199 | + `[2J[0;0f[1m[31m _ _ _ ␊ |
| 200 | + | |_ ___ __ _ ___| |__ ___ ___ __| | ___ ␊ |
| 201 | + | __/ _ \\/ _` |/ __| '_ \\ / __/ _ \\ / _` |/ _ \\␊ |
| 202 | + | || __/ (_| | (__| | | | (_| (_) | (_| | __/␊ |
| 203 | + \\__\\___|\\__,_|\\___|_| |_|\\___\\___/ \\__,_|\\___|␊ |
| 204 | + [22m[39m␊ |
| 205 | + [1m[33m Learn to code effectively Powered by MadHacks[22m[39m␊ |
| 206 | + ␊ |
| 207 | + ␊ |
| 208 | + No more tasks available!␊ |
| 209 | + ` |
0 commit comments