Skip to content

Commit 8954bdc

Browse files
committed
updated test scripts
1 parent 17fcb55 commit 8954bdc

3 files changed

Lines changed: 31 additions & 55 deletions

File tree

.travis.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,16 @@
11
language: python
22

3-
sudo: false
4-
5-
os:
6-
- osx
7-
- linux
8-
93
matrix:
104
include:
11-
# Use the built in venv for linux builds
5+
- os: linux
6+
sudo: required
7+
python: 3.7
128
- os: linux
139
sudo: required
1410
python: 3.5
15-
# Use generic language for osx
16-
- os: osx
17-
language: generic
11+
1812
# Perform the manual steps on osx to install python3 and activate venv
1913
before_install:
20-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
21-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install python3; fi
22-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then virtualenv venv -p python3; fi
23-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source venv/bin/activate; fi
2414
- if [ $TRAVIS_OS_NAME == "linux" ]; then
2515
export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0;
2616
sh -e /etc/init.d/xvfb start;

src/test/extension.test.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ import * as assert from "assert";
1111
import * as vscode from "vscode";
1212
import * as myExtension from "../client/extension";
1313

14-
// Defines a Mocha test suite to group tests of similar kind together
15-
suite("Tests", () => {
14+
// // Defines a Mocha test suite to group tests of similar kind together
15+
// suite("Tests", () => {
1616

17-
// Defines a Mocha unit test
18-
test("Something Formatting 1", () => {
19-
assert.equal(1, [1, 2, 3].indexOf(5));
20-
assert.equal(-1, [1, 2, 3].indexOf(0));
21-
});
17+
// // Defines a Mocha unit test
18+
// test("Something Formatting 1", () => {
19+
// assert.equal(1, [1, 2, 3].indexOf(5));
20+
// assert.equal(-1, [1, 2, 3].indexOf(0));
21+
// });
2222

23-
// Defines a Mocha unit test
24-
test("Something Formatting 2", () => {
25-
assert.equal(1, [1, 2, 3].indexOf(5));
26-
assert.equal(-1, [1, 2, 3].indexOf(0));
27-
});
28-
});
23+
// // Defines a Mocha unit test
24+
// test("Something Formatting 2", () => {
25+
// assert.equal(1, [1, 2, 3].indexOf(5));
26+
// assert.equal(-1, [1, 2, 3].indexOf(0));
27+
// });
28+
// });
Lines changed: 14 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,22 @@
11
#
2-
import math, sys
3-
2+
import math, sys;
43

54
def example1():
65
####This is a long comment. This should be wrapped to fit within 72 characters.
7-
some_tuple = (1, 2, 3, 'a')
8-
some_variable = {'long':
9-
'Long code lines should be wrapped within 79 characters.',
10-
'other': [math.pi, 100, 200, 300, 9876543210,
11-
'This is a long string that goes on'],
12-
'more': {'inner':
13-
'This whole logical line should be wrapped.',
14-
some_tuple: [1, 20, 300, 40000, 500000000,
15-
60000000000000000]}}
6+
some_tuple=( 1,2, 3,'a' );
7+
some_variable={'long':'Long code lines should be wrapped within 79 characters.',
8+
'other':[math.pi, 100,200,300,9876543210,'This is a long string that goes on'],
9+
'more':{'inner':'This whole logical line should be wrapped.',some_tuple:[1,
10+
20,300,40000,500000000,60000000000000000]}}
1611
return (some_tuple, some_variable)
17-
18-
19-
def example2():
20-
return {'has_key() is deprecated': True}.has_key({'f': 2}.has_key(''))
21-
22-
23-
class Example3(object):
24-
def __init__(self, bar):
25-
#Comments should have a space after the hash.
26-
if bar:
27-
bar += 1
28-
bar = bar * bar
29-
return bar
30-
else:
31-
some_string = """
12+
def example2(): return {'has_key() is deprecated':True}.has_key({'f':2}.has_key(''));
13+
class Example3( object ):
14+
def __init__ ( self, bar ):
15+
#Comments should have a space after the hash.
16+
if bar : bar+=1; bar=bar* bar ; return bar
17+
else:
18+
some_string = """
3219
Indentation in multiline strings should not be touched.
3320
Only actual code should be reindented.
3421
"""
35-
36-
return (sys.path, some_string)
22+
return (sys.path, some_string)

0 commit comments

Comments
 (0)