Esempio n. 1
0
def test_run():
    instrs = [
        ("mask", "", "XXXXXXXXXXXXXXXXXXXXXXXXXXXXX1XXXX0X"),
        ("mem", "8", "11"),
        ("mem", "7", "101"),
        ("mem", "8", "0"),
    ]
    expected = 165
    assert run(instrs) == expected
Esempio n. 2
0
import part1
import part2
import part3

part1.run()
part2.run()
part3.MecburKaldimClassa().run()
Esempio n. 3
0
import part1
import part2
import bonus

from util import get_stocks

if __name__ == "__main__":
    print("MSCI 261 Final Project\n")
    symbols = []
    symbols.append(input("Enter a stock symbol to query: "))
    symbols.append(input("Enter a second stock symbol:   "))
    print("Risk-free = 2%\n")

    returns_monthly, returns_annual = get_stocks(symbols)

    print("\n---------- Part 1 ----------")
    part1.run(returns_monthly, returns_annual, symbols)
    print("\n---------- Part 2 ----------")
    part2.run(returns_monthly, returns_annual, symbols)
    print("\n---------- Bonus ----------\n")
    bonus.run()
Esempio n. 4
0
import part1

dev = "RTE3.xml"
processed = "RTE2_dev.pre_processed.xml"

part1.run(dev, processed)