forked from italia/publiccode-parser-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add disabled test for BCP47 tag
Go's language.Parse() is more lenient and allows non-BCP47 language tags. Let's add a disabled test for now. Related to italia#47.
- Loading branch information
Showing
2 changed files
with
66 additions
and
0 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
60 changes: 60 additions & 0 deletions
60
testdata/v0.2/invalid/localisation_availableLanguages_invalid_bcp47.yml
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,60 @@ | ||
publiccodeYmlVersion: "0.2" | ||
|
||
name: Medusa | ||
url: "https://github.com/italia/developers.italia.it.git" | ||
softwareVersion: "dev" | ||
releaseDate: "2017-04-15" | ||
|
||
inputTypes: | ||
- application/x.empty | ||
outputTypes: | ||
- application/x.empty | ||
|
||
platforms: | ||
- web | ||
|
||
categories: | ||
- cloud-management | ||
|
||
developmentStatus: development | ||
|
||
softwareType: "standalone/other" | ||
|
||
description: | ||
eng: | ||
localisedName: Medusa | ||
genericName: Text Editor | ||
shortDescription: > | ||
A rather short description which | ||
is probably useless | ||
longDescription: > | ||
Very long description of this software, also split | ||
on multiple rows. You should note what the software | ||
is and why one should need it. This is 158 characters. | ||
Very long description of this software, also split | ||
on multiple rows. You should note what the software | ||
is and why one should need it. This is 316 characters. | ||
Very long description of this software, also split | ||
on multiple rows. You should note what the software | ||
is and why one should need it. This is 474 characters. | ||
Very long description of this software, also split | ||
on multiple rows. You should note what the software | ||
is and why one should need it. This is 632 characters. | ||
features: | ||
- Just one feature | ||
|
||
legal: | ||
license: AGPL-3.0-or-later | ||
|
||
maintenance: | ||
type: "community" | ||
|
||
contacts: | ||
- name: Francesco Rossi | ||
|
||
localisation: | ||
localisationReady: true | ||
availableLanguages: | ||
# Should NOT validate: even if this a valid POSIX language tag | ||
# it's NOT a valid BCP47 language tag | ||
- hr_HR |