-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update LICENSE * crop image * Edit README * remove unnecessary env * change tests from XCTAssert to expect toBe * Change to Korean
- Loading branch information
Showing
18 changed files
with
321 additions
and
238 deletions.
There are no files selected for viewing
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,24 @@ | ||
# Contributing | ||
|
||
> This document might be outdated. Please make a Issue. | ||
## Coding Style | ||
|
||
This project uses [SwiftLint](https://github.com/realm/SwiftLint), | ||
[markdownlint](https://github.com/markdownlint/markdownlint), | ||
and [pre-commit](https://pre-commit.com/) | ||
to enforce formatting and coding style. | ||
|
||
``` | ||
brew install swiftlint | ||
gem install mdl | ||
brew install pre-commit | ||
pre-commit install | ||
``` | ||
|
||
SwiftLint also run on CI for every PR. | ||
|
||
## Code Quality | ||
|
||
[![Maintainability](https://api.codeclimate.com/v1/badges/b920b09bdee71fdc8208/maintainability)](https://codeclimate.com/github/sboh1214/Hwp-Swift/maintainability) | ||
[![Test Coverage](https://api.codeclimate.com/v1/badges/b920b09bdee71fdc8208/test_coverage)](https://codeclimate.com/github/sboh1214/Hwp-Swift/test_coverage) |
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,32 @@ | ||
# Security Policy | ||
|
||
> This document might be outdated. Please make a Issue. | ||
## Known Issues | ||
|
||
- < 0.4.1 | ||
HwpFile > docInfo > idMappings > faceNameKorean(Count/Array) 누락 | ||
|
||
``` | ||
Below is Template | ||
``` | ||
|
||
## Supported Versions | ||
|
||
Use this section to tell people about which versions of your project are | ||
currently being supported with security updates. | ||
|
||
| Version | Supported | | ||
| ------- | ------------------ | | ||
| 5.1.x | :white_check_mark: | | ||
| 5.0.x | :x: | | ||
| 4.0.x | :white_check_mark: | | ||
| < 4.0 | :x: | | ||
|
||
## Reporting a Vulnerability | ||
|
||
Use this section to tell people how to report a vulnerability. | ||
|
||
Tell them where to go, how often they can expect to get an update on a | ||
reported vulnerability, what to expect if the vulnerability is accepted or | ||
declined, etc. |
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
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
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 |
---|---|---|
@@ -1,25 +1,21 @@ | ||
import CoreHwp | ||
import XCTest | ||
import Nimble | ||
|
||
final class BlankTests: XCTestCase { | ||
|
||
func testOpen() throws { | ||
let hwp = try openHwp(#file, "blank-mac2014vp") | ||
XCTAssertNotNil(hwp.fileHeader) | ||
} | ||
|
||
func testSignature() throws { | ||
let hwp = try openHwp(#file, "blank-mac2014vp") | ||
XCTAssertEqual(hwp.fileHeader.signature, "HWP Document File\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0") | ||
expect(hwp.fileHeader.signature) == "HWP Document File\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" | ||
} | ||
|
||
func testHwpVersion() throws { | ||
let hwp = try openHwp(#file, "blank-mac2014vp") | ||
XCTAssertEqual(hwp.fileHeader.version, HwpVersion(5, 1, 0, 1)) | ||
expect(hwp.fileHeader.version) == HwpVersion(5, 1, 0, 1) | ||
} | ||
|
||
func testEncryptVersion() throws { | ||
let hwp = try openHwp(#file, "blank-mac2014vp") | ||
XCTAssertEqual(hwp.fileHeader.encryptVersion, 4) | ||
expect(hwp.fileHeader.encryptVersion) == 4 | ||
} | ||
} |
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
Oops, something went wrong.