File: programming_mode.feature

package info (click to toggle)
gnome-calculator 3.30.1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 10,760 kB
  • sloc: python: 168; xml: 121; makefile: 4
file content (21 lines) | stat: -rw-r--r-- 657 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
@programming_mode
Feature: Programming mode

  Background:
    * Make sure that Calculator is running
    * Switch to Programming mode

  Scenario Outline: Simple calculations in programming mode
    * Calculate "<expression>"
    Then result is "<result>"

  Examples:
    | expression            | result     |
    | 123456789 + 987654321 | 1111111110 |
    | 987654321 + 0         | 987654321  |
    | 987654321 - 987654322 | -1         |
    | -98765-0              | -98765     |
    | 3/6                   | 0.5        |
    | -8/2                  | -4         |
    | 10 / 3 * 3            | 10         |
    | 6 / (3 * 2)           | 1          |