This repository has been archived by the owner on Apr 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1142 from dcci/formatterdecimal
- Loading branch information
Showing
6 changed files
with
115 additions
and
0 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
packages/Python/lldbsuite/test/lang/swift/foundation_value_types/decimal/Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
LEVEL = ../../../../make | ||
SWIFT_SOURCES := main.swift | ||
SWIFT_OBJC_INTEROP := 1 | ||
include $(LEVEL)/Makefile.rules |
5 changes: 5 additions & 0 deletions
5
...ldbsuite/test/lang/swift/foundation_value_types/decimal/TestSwiftFoundationTypeDecimal.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import lldbsuite.test.lldbinline as lldbinline | ||
from lldbsuite.test.decorators import * | ||
|
||
lldbinline.MakeInlineTest(__file__, globals(), | ||
decorators=[swiftTest,skipUnlessDarwin]) |
18 changes: 18 additions & 0 deletions
18
packages/Python/lldbsuite/test/lang/swift/foundation_value_types/decimal/main.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import Foundation | ||
|
||
func main() { | ||
let x = Decimal(42.5) | ||
let y = Decimal(422.5) | ||
let z = Decimal(-23.6) | ||
let patatino = Decimal(12345567888.1234) | ||
return //%self.expect("frame var -d run -- x", substrs=['42.5']) | ||
//%self.expect("expr -d run -- x", substrs=['42.5']) | ||
//%self.expect("frame var -d run -- y", substrs=['422.5']) | ||
//%self.expect("expr -d run -- y", substrs=['422.5']) | ||
//%self.expect("frame var -d run -- z", substrs=['-23.6']) | ||
//%self.expect("expr -d run -- z", substrs=['-23.6']) | ||
//%self.expect("frame var -d run -- patatino", substrs=['12345567888.123']) | ||
//%self.expect("expr -d run -- patatino", substrs=['12345567888.123']) | ||
} | ||
|
||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters