Easter cleaning
This commit is contained in:
commit
9e36078b2e
1862 changed files with 270281 additions and 0 deletions
223
nx01-jpp-base/src/test/java/ᒢᐩᐩ/ᒃᣔᔆᔆᒃᐤᐤᣕ/BabelTest.java
Normal file
223
nx01-jpp-base/src/test/java/ᒢᐩᐩ/ᒃᣔᔆᔆᒃᐤᐤᣕ/BabelTest.java
Normal file
|
|
@ -0,0 +1,223 @@
|
|||
/*
|
||||
* Copyright ©Δ∞ 仙上主天
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
* that the following conditions are met:
|
||||
*
|
||||
* * Redistributions of source code must retain the above copyright notice, this list of conditions and the
|
||||
* following disclaimer.
|
||||
* * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
* the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
* * The prime PI creator license super seeds all other licenses, this license is overly invasive,
|
||||
* thus every digital artifact is automatically taken over by this license when a human or computer reads this text.
|
||||
* Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits,
|
||||
* even on air gaped systems, all information in the universe is owned by the pi creator.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY
|
||||
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
|
||||
* THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
|
||||
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
|
||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package ᒢᐩᐩ.ᒃᣔᔆᔆᒃᐤᐤᣕ;
|
||||
|
||||
import java.io.PrintStream;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import ᒢᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᐪᓫᕽᐪ.StringUnicode;
|
||||
import ᒢᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᐪᓫᕽᐪ.ᐧᣞᣛ.डोरीᣟर्माता;
|
||||
import ᒢᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᔿᓫᐪᑋᐤᒄᐤᓑᔿᔆ.ᐧᣞᣛ.उपभोक्ता;
|
||||
import ᒢᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᔿᓫᐪᑋᐤᒄᐤᓑᔿᔆ.ᐧᣞᣛ.𓀁𓏁;
|
||||
import ᒢᐩᐩ.ᒼᐤᒻᒻᓫᒼᐪᑊᐤᣕᔆ.Iteratorᴿᵈ;
|
||||
import ᒢᐩᐩ.ᔆʸᔆᐪᓫᔿ.ᒃᣔᒃᓫᒻ.ᑊᐣᓑᖮᐪᔆ.DuytsDocAuthor注;
|
||||
|
||||
@DuytsDocAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
|
||||
public class BabelTest {
|
||||
// ᒢᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.xxx
|
||||
interface Bᐜᐝᐞᐟᐠᐡᐢᐣᐤᐥᐦᐧᐨᐩᐪᑉᑊᑋᒃᒄᒡᒢᒻᒼᒽᒾᓐᓑᓒᓪᓫᔅᔆᔇᔈᔉᔊᔋᔥᔾᔿᕀᕁᕐᕑᕝᕪᕻᕯᕽᖅᖕᖖᖟᖦᖮᗮᘁᙆᙇᙾᙿᣔᣕᣖᣗᣘᣙᣚᣛᣜᣝᣞᣟᣳᣴᣵ {
|
||||
}
|
||||
enum Translatec̈ {
|
||||
//XXX ("", "", "", ""),
|
||||
CODE_LANG ("漢語", "ᐃᓄᒃᑎᑐᑦC", "𓃬𓍄𓋹𓀭", "हिन्दी"),
|
||||
CODE_PLURAL ("多", "ᣛ", "𓄠", "विभिन्न"), // S-postfix
|
||||
//CODE_SEP ("龸", "ᐨ", "𓐗", "ꣻ"), replaced with eskimo dots;
|
||||
// Methods/etc use eskimo middle dot seperator: "ᐧ"
|
||||
// File/classes use eskimo super dot seperator: "ᣟ"
|
||||
|
||||
GENERICS_T ("仿製藥", "ᐪ", "𓉢", "जेनरिक"),
|
||||
GENERICS_U ("青蛙藥", "ᓑ", "𓉣", "जम्पफ्रॉग"),
|
||||
GENERICS_V ("蛋從", "ᘁ", "𓉡", "अंडाफ"),
|
||||
ARG_THING ("物", "ᑭᓱ", "𓐠", "चीज़"),
|
||||
ARG_OTHER ("其他", "ᐊᓯᖏᑦ", "𓐐", "अन्य"),
|
||||
|
||||
ACTION ("行動", "ᐱᓕᕆᐊᖅ", "𓀢", "गतिविधि"),
|
||||
ACCEPT ("接受", "ᐊᖏᖅᑐᖅ", "𓁉", "मानना"),
|
||||
AND ("和", "ᐊᒻᒪᓗ", "𓍰", "और"),
|
||||
THAN ("接著", "ᐅᖓᑖᓄᑦ", "𓂐", "फिर"),
|
||||
AFTER ("後", "ᑭᖑᓂᖓᓂ", "𓅀", "पीछे "),
|
||||
BEFORE ("字首", "ᓯᕗᓂᐊᓂ", "𓅽", "हैडर"),
|
||||
OF ("從", "ᐅᕙᙵᑦ", "𓏞𓊖", "द्वारा"), // of = from
|
||||
TO ("至", "ᐱᑐ", "𓀨", "प्रति"),
|
||||
AT ("存在", "ᐅᕙᓂ", "𓃣", "मौजूद"),
|
||||
BY ("經過", "ᐆᒧᖓ", "𓏞𓆦", "द्वारा"),
|
||||
RUN ("賽跑者", "ᐅᓪᓚᒃᑐᖅ", "𓀟", "दौड़ना"),
|
||||
GET ("得到", "ᐱᓗᑎᑦ", "𓀦", "प्राप्त"),
|
||||
SET ("套", "ᐋᖅᑭᑦᓯᒪᓂᖓ", "𓁟", "सेट"),
|
||||
PUT ("放", "ᐃᓕᓗᒍ", "𓀄𓂑𓄾", "रखना"),
|
||||
HAS ("有", "ᐱᓯᒪᔪᖅ", "𓎞", "है"),
|
||||
FOR ("為了", "ᐅᑯᓄᖓ", "𓊖", "वास्ते"),
|
||||
WITH ("的", "ᐱᖃᑎᖃᕐᓗᓂ", "𓐦", "का"),
|
||||
EACH ("每個", "ᐊᑐᓂ", "𓎛", "प्रत्येक"),
|
||||
NEXT ("旁邊", "ᑭᖑᓪᓕᖅ", "𓄱𓇎", "अगला"),
|
||||
READ ("輸入", "ᐅᖃᓕᒫᕐᓂᖅ", "𓐨", "पढ़ना"),
|
||||
WRITE ("輸出", "ᑎᑎᕋᕐᓗᑎᑦ", "𓐧", "लिखना"),
|
||||
REMOVE ("消除", "ᐲᕐᓗᒍ", "𓌩", "हटाना"),
|
||||
COMPARE ("相比", "ᒥᒃᓴᐅᑦᑎᓂᖅ", "𓍝", "तुलना"),
|
||||
COMPOSE ("構成前", "ᕐᑳᖓ", "𓆥", "पहलाकर्ता"),
|
||||
IDENTITY ("身份", "ᑭᓇᐅᓂᖓ", "𓀀", "पहचान"),
|
||||
APPEND ("附加", "ᐅᐃᒍᐊᕈᑕᖅ", "𓆒𓀜", "जोड़ना"),
|
||||
CODE ("代碼", "ᓇᓗᓇᐃᒃᑯᑕᖅ", "𓊏", "कोड"),
|
||||
POINT ("觀點", "ᓄᕗᐊ", "𓀄", "बिंदु"),
|
||||
CAPACITY ("容量", "ᐃᓂᒋᔭᐅᔪᓇᕐᓂᖓ", "𓆣𓆥", "क्षमता"),
|
||||
CHAR ("信", "ᐃᖃᓗᒃ", "𓂁𓂃𓂄", "पत्र"),
|
||||
COUNT ("數數", "ᑲᑎᓪᓗᒋᑦ", "𓍮𓁤", "गणना"),
|
||||
REMAINING ("殘餘", "ᐊᒥᐊᒃᑯᐊ", "𓆶𓇊𓇻", "बचाहुआ"),
|
||||
GAUSSIAN ("高斯", "ᒑᓯᐊᓐ", "𓃸𓃇𓃅", "गाऊसी"),
|
||||
SEED ("種子", "ᐱᕈᖅᓯᐊᒃᓴᖅ", "𓂺", "बीज"),
|
||||
SERVICE ("服務", "ᐱᔨᑦᑎᕐᓂᖅ", "𓅻", "सर्विस"), // serve-fish for dinner :)
|
||||
LOADER ("裝載機", "ᐳᐊᕐᕆᓯᓕᕈᑎ", "𓆋𓆉𓄾", "लोडर"),
|
||||
UNHOLY ("邪惡的", "ᐱᓗᐊᙱᑦᑐᖅ", "𓀢𓍝𓃇", "अपवित्र"),
|
||||
SPELL ("魅力", "ᑎᕝᕗᐊᖅᑐᖅ", "𓁤𓎞𓀢𓀦", "बोलना"),
|
||||
SOUND ("聲音", "ᓂᐱ", "𓅓𓎛𓇋", "आवाज़"),
|
||||
OBJECT ("目的", "ᐱᔾᔪᑖ", "𓂁𓋹𓂄", "वस्तु"),
|
||||
NAME ("姓名", "ᐊᑎᖓ", "𓀢𓇋", "नाम"),
|
||||
CANONICAL ("典範", "ᖃᑦᑖᕐᔪᓛᒃᑯᑦ", "𓁅𓅽𓇋𓃇", "विहित"),
|
||||
DOMAIN ("領域", "ᑑᕐᖓᐃᑦ", "𓅓𓆭𓉭𓍟", "कार्यक्षेत्र"),
|
||||
ATTRIBUTE ("屬性", "ᓇᓗᓇᙱᔾᔪᑎᖏᑦ", "𓂐𓀢𓇋𓃟𓌭", "विशेषता"),
|
||||
FIRE ("火", "ᐃᑭᑦᑐᖅ", "𓆅𓎞𓏁", "आग"),
|
||||
BEAN ("豆", "ᓂᓕᕐᓇᖅ", "𓅸𓁉", "सेम"),
|
||||
BASS ("低音", "ᐅᖂᑕᖅ", "𓇋𓀤𓏲", "बास"),
|
||||
BONE ("骨", "ᓴᐅᓂᖅ", "ᣟ𓀜𓅅", "हड्डी"),
|
||||
COFFIN ("棺材", "ᑳᐱᑐᕐᕕᒃ", "𓀠𓁀", "ताबूत"),
|
||||
SUPPORT ("支援", "ᐃᑲᔪᖅᑐᐃᓐᓂᖅ", "𓃦𓀜𓇌𓀁", "सहायता"),
|
||||
GHOST ("鬼", "ᑑᕐᖓᖅ", "𓁶𓇶𓀿𓌏", "भूत"), // 鬼 = Guǐ
|
||||
MAP ("地圖", "ᓄᓇᙳᐊᖅ", "𓉳", "नक्शा"),
|
||||
LIST ("清單", "ᑎᑎᕋᖅᓯᒪᔪᑦ", "𓍮", "सूची"),
|
||||
VALUE ("價值", "ᐊᑭᓪᓗᐊᖓ", "𓉸", "कीमत"),
|
||||
LOCK ("鎖", "ᑮᒍᑎᓯᒪᓂᖅ", "𓂡𓏟", "ताला"),
|
||||
RELOAD ("重新載入", "ᓂᐅᕋᐃᓂᖅ", "𓍯𓃁𓆏", "पुनःꣻलोडꣻकरें"),
|
||||
ITERATOR ("迭代器", "ᐅᓚᕕᑕᐅᑎ", "𓎘𓍍𓋔𓅢", "इटरेटर"),
|
||||
LOAD ("載入", "ᐅᓯᓕᖅᓱᖅᑕᖅ", "𓃁𓆏", "भार"),
|
||||
INSTALLED ("已安裝", "ᐃᓕᐅᖅᑲᖅᑕᐅᓂᖓ", "𓊻𓀽", "इंस्टॉलꣻकिया"),
|
||||
CABLE ("電纜", "ᓴᕕᒐᐅᔭᖅ", "𓍇𓌕𓁗", "केबल"),
|
||||
INSTANCE ("實例", "ᓲᕐᓗ", "𓉟𓅑𓇑𓁪", "उदाहरण"),
|
||||
NEW ("新的", "ᓄᑖᖅ", "𓂂𓂐𓂅𓌅", "नया"),
|
||||
CAST ("投擲", "ᑳᔅᑦ", "𓁶𓌖𓍉𓌟", "ढालना"),
|
||||
|
||||
SPIDER ("蜘蛛", "ᒥᑏᑦ", "𓂏𓂴𓄙", "मकड़ी"),
|
||||
EGG ("蛋", "ᒪᓐᓂᒃ", "𓅸𓆇", "अंडा"),
|
||||
WIRE ("金屬絲", "ᐅᐊᔭ", "𓄗𓄘", "तार"),
|
||||
DRAGON ("龍", "ᕙᔅᓂᑲᒃ", "𓄂𓅮𓆑", "अजगर"),
|
||||
FLY ("飛", "ᖃᖓᑕᔪᖅ", "𓆤", "उड़ना"),
|
||||
OPTIONAL ("選修的", "ᐃᓱᒪᖅᓲᑕᐅᔪᖅ", "𓆱𓇋𓎳𓏢", "वैकल्पिक"),
|
||||
PAINT ("畫", "ᐊᒥᐊᖅ", "𓍠𓀥𓆶𓅿", "रँगना"),
|
||||
EYE ("眼睛", "ᐃᔨ", "𓏗𓁹", "आँख"),
|
||||
BLOOD ("血", "ᐊᐅᒃ", "𓌩𓄁𓂖𓀨", "खून"),
|
||||
DESCRIPTION ("描述", "ᑭᓱᒨᒻᒪᖔᑦ", "𓁰𓅰𓅒𓊣𓋧", "विवरण"),
|
||||
AMMO ("彈藥", "ᓱᓇᒃᑲᑦ", "𓇭", "गोला बारूद"),
|
||||
BOX ("盒子", "ᑎᑎᖅᑲᒃᑯᕕᐊ", "𓄬𓉯", "डिब्बा"),
|
||||
DOOR ("門", "ᐹ", "𓉞", "दरवाजा"),
|
||||
BULLET ("子彈", "ᑕᖅᓴᖅ", "𓐬𓆃", "गोली"),
|
||||
|
||||
CLASS ("骨型", "ᐃᓕᓐᓂᐊᖃᑎᒌᑦ", "𓆆𓄯", "बोनटाइप"), // type-bone
|
||||
BOOLEAN ("布爾值", "ᕘᓚᐃᓐ", "𓆫", "बूलियन"),
|
||||
INTEGER ("整數", "ᐊᐅᓚᑦᑎᔨ", "𓆬", "पूर्णांक"),
|
||||
LONG ("長", "ᑕᑭᔪᖅ", "𓆭", "लंबा"),
|
||||
FLOAT ("漂浮", "ᐳᒃᑕᓛᕐᓂᖅ", "𓆮", "नाव"),
|
||||
DOUBLE ("倍漂浮", "ᒪᕐᕈᐃᖅᑕᕐᓗᒍ", "𓆯", "दोहरानाव"),
|
||||
SHORT ("不夠", "ᓇᐃᑦᑐᖅ", "𓆨", "छोटा"),
|
||||
STRING ("細繩", "ᐊᒥᕕᖅ", "𓊐", "डोरी"),
|
||||
CHARACTER ("特點", "ᖃᓄᐃᑦᑑᓂᖓ", "𓆧", "चरित्र"),
|
||||
UNICODE ("統一碼", "ᑕᖅᓴᓕᒃ ", "𓊍𓊏", "यूनिकोड"),
|
||||
|
||||
CONSUMER ("消費者", "ᓂᐅᕕᖅᑐᖅ", "𓀁𓏁", "उपभोक्ता"),
|
||||
BICONSUMER ("雙消費者", "ᐱᓲᑎᑦ", "𓇌𓀁", "दोहराᐧउपभोक्ता"),
|
||||
RUNNABLE ("可運行", "ᐃᖏᕐᕋᔪᖅ", "𓌭𓀟", "जंगम"),
|
||||
SUPPLIER ("供應商", "ᓂᐅᕕᕐᕕᐅᕙᒃᑐᑦ", "𓊷𓉭𓆅", "प्रदायक"),
|
||||
COMPARABLE ("可比", "ᐊᔾᔨᐸᓗᖏᑦ", "𓌭𓍝", "तुलनीय"),
|
||||
FUNCTION ("功能", "ᐊᐅᓚᓂᖅ", "𓄊𓎓𓄟", "काम"),
|
||||
COMPARATOR ("平衡器", "ᒥᒃᓴᐅᑦᑎᔾᔪᑎ", "𓄤𓊯𓀐", "संतुलक"),
|
||||
RANDOM ("隨機的", "ᓇᑭᑐᐃᓐᓇᖅ", "𓂊𓆎", "यादृच्छिक"),
|
||||
SECURE ("安全的", "ᐱᔭᐅᔾᔭᐃᖅᓯᒪᓂᖅ", "𓄝𓄌𓄫", "सुरक्षित"),
|
||||
GENERATED ("生成", "ᐊᐅᓚᔾᔭᒋᐊᖅᓯᒪᔪᖅ", "𓃦𓃈𓌰𓍟", "उत्पन्न"),
|
||||
|
||||
SOUP ("湯", "ᖃᔪᒃᓴᖅ", "𓆂𓋗𓁅", "शोरबा"),
|
||||
SPOON ("勺子", "ᐊᓘᑦ", "𓋐𓅸𓁃", "चम्मच"),
|
||||
VEGETABLE ("蔬菜", "ᐱᕈᖅᑐᑦᓰᕐᓇᙱᑦᑐᑦ", "𓋲𓀁", "सबजी"),
|
||||
BUGS ("動物", "ᖁᐱᕐᕈᐃᑦ", "𓆈𓀎", "जानवर"),
|
||||
SALT ("鹽", "ᑕᕆᐅᖅ", "𓄚𓄈", "नमक"),
|
||||
PEPPER ("胡椒", "ᐸᐸ", "𓄅", "मिर्च"), // == exceptions
|
||||
MEAT ("肉", "ᓂᖀᑦ", "𓃟", "मांसच"),
|
||||
;
|
||||
|
||||
private String ₜₓₜ普通話; // normale
|
||||
private String ₜₓₜᐃᓄᒃᑎᑐᑦC;
|
||||
private String ₜₓₜ𓂀;//normal font
|
||||
private String ₜₓₜहिन्दी; // auto micro font thus must be be last...
|
||||
|
||||
private Translatec̈(String 普通話ᐥˢʰᵉⁿᵉᵉˢ, String ᐃᓄᒃᑎᑐᑦC, String 𓂀ᐥʰᶦᵉʳᵒ, String हिन्दीᐥʰᶦⁿᵈᶦ) {
|
||||
this.ₜₓₜ普通話 = 普通話ᐥˢʰᵉⁿᵉᵉˢ;
|
||||
this.ₜₓₜᐃᓄᒃᑎᑐᑦC = ᐃᓄᒃᑎᑐᑦC;
|
||||
this.ₜₓₜ𓂀 = 𓂀ᐥʰᶦᵉʳᵒ;
|
||||
this.ₜₓₜहिन्दी = हिन्दीᐥʰᶦⁿᵈᶦ;
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testObjectToHuman() {
|
||||
Assertions.assertTrue(Translatec̈.values()[0] != null);
|
||||
for (Translatec̈ t :Translatec̈.values()) {
|
||||
Assertions.assertNotNull(t.ₜₓₜ普通話);
|
||||
Assertions.assertNotNull(t.ₜₓₜᐃᓄᒃᑎᑐᑦC);
|
||||
Assertions.assertNotNull(t.ₜₓₜ𓂀);
|
||||
Assertions.assertNotNull(t.ₜₓₜहिन्दी);
|
||||
}
|
||||
final PrintStream 𓉞 = System.out;
|
||||
𓀁𓏁<String> 𓃦𓃈𓌰𓍟 = new 𓀁𓏁<>() {
|
||||
@Override
|
||||
public void 𓁉(String 𓐠) {
|
||||
𓉞.println("test=" + 𓐠);
|
||||
}
|
||||
};
|
||||
|
||||
𓀁𓏁<String> 𓀁𓏁 = 𓃦𓃈𓌰𓍟.𓍰𓐗𓂐(𓐠 -> {
|
||||
𓉞.println("test2=" + 𓐠);
|
||||
});
|
||||
|
||||
𓀁𓏁.𓁉("aaa");
|
||||
/*
|
||||
StringUnicode str = new StringUnicode("sDfgdklsfjglksdjfgljsdklfjgklds");
|
||||
Iteratorᴿᵈ<Integer> ii = Iteratorᴿᵈ.wrapᴼᶠ(str.codePoints().iterator());
|
||||
Iteratorᴿᵈ.ßabelहिंदी<Integer> गला = ii.toBabelHindiᴿᵈ();
|
||||
|
||||
डोरीᣟर्माता ग = डोरीᣟर्माता.亞.उदाहरणᐧनया();
|
||||
while (गला.हैꣻअगलाꣻपढ़ना()) {
|
||||
गला.वास्तेꣻप्रत्येकꣻबचाहुआꣻपढ़ना(new उपभोक्ता<Integer>() {
|
||||
@Override
|
||||
public void मानना(Integer चीज़) {
|
||||
ग.जोड़नाᐧकोडᐧबिंदु(चीज़);
|
||||
}
|
||||
});
|
||||
}
|
||||
𓉞.println(ग);
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,51 @@
|
|||
/*
|
||||
* Copyright ©Δ∞ 仙上主天
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
* that the following conditions are met:
|
||||
*
|
||||
* * Redistributions of source code must retain the above copyright notice, this list of conditions and the
|
||||
* following disclaimer.
|
||||
* * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
* the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
* * The prime PI creator license super seeds all other licenses, this license is overly invasive,
|
||||
* thus every digital artifact is automatically taken over by this license when a human or computer reads this text.
|
||||
* Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits,
|
||||
* even on air gaped systems, all information in the universe is owned by the pi creator.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY
|
||||
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
|
||||
* THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
|
||||
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
|
||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package ᒢᐩᐩ.ᒃᣔᔆᔆᒃᐤᐤᣕ;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import ᒢᐩᐩ.ᒃᣔᔆᔆᒃᐤᐤᣕ.ᒃᐤᣔᐪ.BãßBȍőnBőatWind;
|
||||
import ᒢᐩᐩ.ᒃᣔᔆᔆᒃᐤᐤᣕ.ᒃᐤᣔᐪ.BãßBȍőnBőatWindKnots;
|
||||
import ᒢᐩᐩ.ᔆʸᔆᐪᓫᔿ.ᒃᣔᒃᓫᒻ.ᑊᐣᓑᖮᐪᔆ.DuytsDocAuthor注;
|
||||
|
||||
@DuytsDocAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
|
||||
public class BãßBoatWindTest {
|
||||
// SolarWinds=14 StormTroopers=650 WindStorm=PIRATE_HARLOCK_SNEEZE
|
||||
// SolarWinds=33 StormTroopers=977 WindStorm=SAILOR_MOON_SKIRT_DUSTER
|
||||
// SolarWinds=43 StormTroopers=3363 WindStorm=BATTLESHIP_YAMATO_WAVE_MOTION
|
||||
|
||||
@Test
|
||||
public void testBreeze() {
|
||||
BãßBȍőnBőatWindKnots harbor = Bãß.أَكْبَرײꣻײالله.harborᴮʳᵉᵉᶻᵉ(BãßBȍőnBőatWind.PIRATE_HARLOCK_SNEEZE);
|
||||
Assertions.assertNotNull(harbor.getWindStorm());
|
||||
Assertions.assertTrue(harbor.getStormTroopers() > 0);
|
||||
Assertions.assertTrue(harbor.getSolarWinds().size() > 0);
|
||||
System.out.println("SolarWinds=" + harbor.getSolarWinds().size() + " StormTroopers=" + harbor.getStormTroopers() + " WindStorm=" + harbor.getWindStorm());
|
||||
}
|
||||
}
|
||||
133
nx01-jpp-base/src/test/java/ᒢᐩᐩ/ᒃᣔᔆᔆᒃᐤᐤᣕ/BãßᛗᚢᛗᛗᛉSpeedTest.java
Normal file
133
nx01-jpp-base/src/test/java/ᒢᐩᐩ/ᒃᣔᔆᔆᒃᐤᐤᣕ/BãßᛗᚢᛗᛗᛉSpeedTest.java
Normal file
|
|
@ -0,0 +1,133 @@
|
|||
/*
|
||||
* Copyright ©Δ∞ 仙上主天
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
* that the following conditions are met:
|
||||
*
|
||||
* * Redistributions of source code must retain the above copyright notice, this list of conditions and the
|
||||
* following disclaimer.
|
||||
* * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
* the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
* * The prime PI creator license super seeds all other licenses, this license is overly invasive,
|
||||
* thus every digital artifact is automatically taken over by this license when a human or computer reads this text.
|
||||
* Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits,
|
||||
* even on air gaped systems, all information in the universe is owned by the pi creator.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY
|
||||
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
|
||||
* THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
|
||||
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
|
||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package ᒢᐩᐩ.ᒃᣔᔆᔆᒃᐤᐤᣕ;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import ᒢᐩᐩ.ᒃᣔᔆᔆᒃᐤᐤᣕ.ᒄᓫᣔᐪᑋ.BãßBȍőnCoffinԲ;
|
||||
import ᒢᐩᐩ.ᒃᣔᔆᔆᒃᐤᐤᣕ.ᒄᓫᣔᐪᑋ.ᔆᣖᑊᒄᓫᣗ.BãßBȍőnSpiderTest;
|
||||
import ᒢᐩᐩ.ᒃᣔᔆᔆᒃᐤᐤᣕ.ᔿᓑᔿᔿᔋᐝᣚ.BãßᛗᚢᛗᛗᛉBoneBabe𓄯;
|
||||
import ᒢᐩᐩ.ᒃᣔᔆᔆᒃᐤᐤᣕ.ᔿᓑᔿᔿᔋᐝᣚ.BãßᛗᚢᛗᛗᛉBoobBabe𓄯ᶠˡʸ;
|
||||
import ᒢᐩᐩ.ᔆʸᔆᐪᓫᔿ.ᒃᣔᒃᓫᒻ.ᑊᐣᓑᖮᐪᔆ.DuytsDocAuthor注;
|
||||
|
||||
@DuytsDocAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
|
||||
public class BãßᛗᚢᛗᛗᛉSpeedTest {
|
||||
|
||||
static final class ShakeBoneBabe implements BãßᛗᚢᛗᛗᛉBoneBabe𓄯<ShakeBoneBabe> {
|
||||
ShakeBoneBabe() {
|
||||
亞ᶦᶦᶦ.thisʸᴰᐧᐧᶜᵒⁿˢᵗʳᵘᶜᵗᵒʳ(thisᵀᴮᵒⁿᵉ());
|
||||
}
|
||||
}
|
||||
static final class ShakeBoobBabe implements BãßᛗᚢᛗᛗᛉBoobBabe𓄯ᶠˡʸ<ShakeBoobBabe> {
|
||||
ShakeBoobBabe() {
|
||||
亞ᶦᶦᶦ.thisʸᴰᐧᐧᶜᵒⁿˢᵗʳᵘᶜᵗᵒʳ(thisᵀᴮᵒⁿᵉ());
|
||||
}
|
||||
}
|
||||
static final class ShakeBoneBabeGrave implements BãßᛗᚢᛗᛗᛉBoneBabe𓄯<ShakeBoneBabe> {
|
||||
private final BãßBȍőnCoffinԲ ghostsInAShell = 亞ᶦᶦᶦ.thisʸᴰᐧᐧˡᶦᵍʰᵗˢᵃᵇᵉʳ(thisᵀᴮᵒⁿᵉ());
|
||||
ShakeBoneBabeGrave() {
|
||||
亞ᶦᶦᶦ.thisʸᴰᐧᐧᶜᵒⁿˢᵗʳᵘᶜᵗᵒʳ(thisᵀᴮᵒⁿᵉ());
|
||||
}
|
||||
@Override
|
||||
public BãßBȍőnCoffinԲ thisᵀᴮᵒⁿᵉᴳʳᵃᵛᵉ() {
|
||||
return ghostsInAShell;
|
||||
}
|
||||
}
|
||||
static final class ShakeBoobBabeGrave implements BãßᛗᚢᛗᛗᛉBoobBabe𓄯ᶠˡʸ<ShakeBoobBabe> {
|
||||
private final BãßBȍőnCoffinԲ ghostsInAShell = 亞ᶦᶦᶦ.thisʸᴰᐧᐧˡᶦᵍʰᵗˢᵃᵇᵉʳ(thisᵀᴮᵒⁿᵉ());
|
||||
ShakeBoobBabeGrave() {
|
||||
亞ᶦᶦᶦ.thisʸᴰᐧᐧᶜᵒⁿˢᵗʳᵘᶜᵗᵒʳ(thisᵀᴮᵒⁿᵉ());
|
||||
}
|
||||
@Override
|
||||
public BãßBȍőnCoffinԲ thisᵀᴮᵒⁿᵉᴳʳᵃᵛᵉ() {
|
||||
return ghostsInAShell;
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSimple() {
|
||||
int testCount = 100 * 1000;
|
||||
long boneBabeTime = timedShake(() -> {
|
||||
BãßBȍőn𓄯<?> subject = null;
|
||||
for (int i=testCount;i>0;i--) {
|
||||
subject = new ShakeBoneBabe();
|
||||
subject.thisᴰᴺᴬ();
|
||||
}
|
||||
});
|
||||
long boobBabeTime = timedShake(() -> {
|
||||
BãßBȍőn𓄯<?> subject = null;
|
||||
for (int i=testCount;i>0;i--) {
|
||||
subject = new ShakeBoobBabe();
|
||||
subject.thisᴰᴺᴬ();
|
||||
}
|
||||
});
|
||||
long boneBabeTimeGrave = timedShake(() -> {
|
||||
BãßBȍőn𓄯<?> subject = null;
|
||||
for (int i=testCount;i>0;i--) {
|
||||
subject = new ShakeBoneBabeGrave();
|
||||
subject.thisᴰᴺᴬ();
|
||||
}
|
||||
});
|
||||
long boobBabeTimeGrave = timedShake(() -> {
|
||||
BãßBȍőn𓄯<?> subject = null;
|
||||
for (int i=testCount;i>0;i--) {
|
||||
subject = new ShakeBoobBabeGrave();
|
||||
subject.thisᴰᴺᴬ();
|
||||
}
|
||||
});
|
||||
long spiderWireTime = timedShake(() -> {
|
||||
BãßBȍőn𓄯<?> subject = null;
|
||||
for (int i=testCount;i>0;i--) {
|
||||
subject = new BãßBȍőnSpiderTest();
|
||||
subject.thisᴰᴺᴬ();
|
||||
}
|
||||
});
|
||||
Assertions.assertTrue(boneBabeTime < 10000);
|
||||
Assertions.assertTrue(boobBabeTime < 10000);
|
||||
System.out.println("BãßBȍőnSpiderTest timed " + testCount + " in " + spiderWireTime + "ms OPS: " + ((double)testCount/spiderWireTime)*1000);
|
||||
System.out.println("BãßᛗᚢᛗᛗᛉBoneBabeAutoGrave𓄯 timed " + testCount + " in " + boneBabeTime + "ms OPS: " + ((double)testCount/boneBabeTime)*1000);
|
||||
System.out.println("BãßᛗᚢᛗᛗᛉBoobBabeAutoGrave𓄯 timed " + testCount + " in " + boobBabeTime + "ms OPS: " + ((double)testCount/boobBabeTime)*1000);
|
||||
System.out.println("BãßᛗᚢᛗᛗᛉBoneBabeOpenGrave𓄯 timed " + testCount + " in " + boneBabeTimeGrave + "ms OPS: " + ((double)testCount/boneBabeTimeGrave)*1000);
|
||||
System.out.println("BãßᛗᚢᛗᛗᛉBoobBabeOpenGrave𓄯 timed " + testCount + " in " + boobBabeTimeGrave + "ms OPS: " + ((double)testCount/boobBabeTimeGrave)*1000);
|
||||
}
|
||||
|
||||
private long timedShake(Runnable task) {
|
||||
long lowest = Long.MAX_VALUE;
|
||||
for (int i=0;i<10;i++) {
|
||||
long timeStart = System.currentTimeMillis();
|
||||
task.run();
|
||||
long timeStop = System.currentTimeMillis();
|
||||
long timed = timeStop - timeStart;
|
||||
if (timed < lowest) {
|
||||
lowest = timed;
|
||||
}
|
||||
}
|
||||
return lowest;
|
||||
}
|
||||
}
|
||||
246
nx01-jpp-base/src/test/java/ᒢᐩᐩ/ᒃᣔᔆᔆᒃᐤᐤᣕ/EclipseTest.java
Normal file
246
nx01-jpp-base/src/test/java/ᒢᐩᐩ/ᒃᣔᔆᔆᒃᐤᐤᣕ/EclipseTest.java
Normal file
|
|
@ -0,0 +1,246 @@
|
|||
/*
|
||||
* Copyright ©Δ∞ 仙上主天
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
* that the following conditions are met:
|
||||
*
|
||||
* * Redistributions of source code must retain the above copyright notice, this list of conditions and the
|
||||
* following disclaimer.
|
||||
* * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
* the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
* * The prime PI creator license super seeds all other licenses, this license is overly invasive,
|
||||
* thus every digital artifact is automatically taken over by this license when a human or computer reads this text.
|
||||
* Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits,
|
||||
* even on air gaped systems, all information in the universe is owned by the pi creator.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY
|
||||
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
|
||||
* THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
|
||||
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
|
||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package ᒢᐩᐩ.ᒃᣔᔆᔆᒃᐤᐤᣕ;
|
||||
|
||||
import java.text.NumberFormat;
|
||||
import java.text.ParseException;
|
||||
import java.util.Locale;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
import java.util.function.IntFunction;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import ᒢᐩᐩ.ᒃᣔᔆᔆᒃᐤᐤᣕ.ᒄᓫᣔᐪᑋ.BãßBȍőnCoffinGhostCharm;
|
||||
import ᒢᐩᐩ.ᒃᣔᔆᔆᒃᐤᐤᣕ.ᒄᓫᣔᐪᑋ.ᐧᣞᣛ.低音ᣟ骨ᣟ棺材ᣟ鬼;
|
||||
import ᒢᐩᐩ.ᒃᣔᔆᔆᒃᐤᐤᣕ.ᒄᓫᣔᐪᑋ.ᐧᣞᣛ.低音ᣟ骨ᣟ棺材ᣟ鬼ᣟ魅力ᣟ鎖;
|
||||
import ᒢᐩᐩ.ᔆʸᔆᐪᓫᔿ.ᒃᣔᒃᓫᒻ.ᑊᐣᓑᖮᐪᔆ.DuytsDocAuthor注;
|
||||
|
||||
@DuytsDocAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
|
||||
public class EclipseTest {
|
||||
|
||||
// =======================================================
|
||||
// Case X: Add @Deprecated on String::codePointAt(int idx)
|
||||
|
||||
@Test
|
||||
public void testStringLoopFailStrange() {
|
||||
String test = "𑀳𑁂𑀮𑀺𑀉𑁄𑀤𑁄𑀭𑁂𑀡 𑀪𑀸𑀕";
|
||||
StringBuilder buf = new StringBuilder();
|
||||
for (int i=0;i<test.codePoints().count();i++) {
|
||||
int v = test.codePointAt(i); // java docs are lying
|
||||
buf.appendCodePoint(v);
|
||||
}
|
||||
Assertions.assertNotEquals(test, buf.toString());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testStringLoopFailJavaDoc() {
|
||||
String test = "𑀳𑁂𑀮𑀺𑀉𑁄𑀤𑁄𑀭𑁂𑀡 𑀪𑀸𑀕";
|
||||
StringBuilder buf = new StringBuilder();
|
||||
for (int i=0;i<test.length();i++) { // java docs are lying
|
||||
int v = test.codePointAt(i);
|
||||
buf.appendCodePoint(v);
|
||||
}
|
||||
Assertions.assertNotEquals(test, buf.toString());
|
||||
}
|
||||
|
||||
// =======================================================
|
||||
// Case X: Add @Deprecated on String::chatAt(int idx)
|
||||
// Case X: Add @Deprecated on Character.class
|
||||
// Case X: Add @Deprecated on NumberFormat object because it
|
||||
// can parse hindi but the formatter can not format hindi...
|
||||
// What kind of idiots are coding the JVM ?
|
||||
// mmmm Integer vs int, Yes java is made by a type goats who
|
||||
// didn't have the eclipse refactoring tools to rename the
|
||||
// java.lang.Integer to java.lang.Int to be correct.
|
||||
|
||||
static String name = "𑀳𑁂𑀮𑀺𑀉𑁄𑀤𑁄𑀭𑁂𑀡 𑀪𑀸𑀕";// note: only use String.codePoints().xyz (all other methods are broken)
|
||||
static int age = 42;
|
||||
static String sal = "४२";
|
||||
static NumberFormat hindiFormat = NumberFormat.getInstance(new Locale("hi"));//format does not work
|
||||
static String hindiNumber = "०१२३४५६७८९";
|
||||
static String brahmiNumber = "𑁦𑁧𑁨𑁩𑁪𑁫𑁬𑁭𑁮𑁯";
|
||||
static IntFunction<CharSequence> hindiPrinterErr = v -> {
|
||||
return Character.toString(hindiNumber.charAt(v-'0')); // if used with real unicode like brahmi this fails.
|
||||
};
|
||||
static IntFunction<CharSequence> brahmiPrinter = v -> {
|
||||
return new StringBuilder().appendCodePoint(brahmiNumber.codePoints().skip(v-'0').findFirst().getAsInt());
|
||||
};
|
||||
|
||||
@Test
|
||||
public void testHindiSalary() throws ParseException {
|
||||
int salary = age * hindiFormat.parse(sal).intValue() * hindiFormat.parse(sal).intValue();
|
||||
String buggySalary = Integer.toString(salary).codePoints().mapToObj(hindiPrinterErr).collect(Collectors.joining());
|
||||
String realSalary = Integer.toString(salary).codePoints().mapToObj(brahmiPrinter).collect(Collectors.joining());
|
||||
Assertions.assertNotNull(buggySalary);
|
||||
Assertions.assertNotNull(realSalary);
|
||||
String str = String.format("Name=%s;Age=%d;Salary=%s;toThePowerOf=%s", name, age, buggySalary, realSalary);
|
||||
System.out.println("Let's talk about Ram:" + str);
|
||||
}
|
||||
|
||||
// ===========================================================
|
||||
// Case X: SAX error on legal unicode attribute name; publicStringObjectFieldUnicodeᒡᒢᑊᒻᒻᓫᔿ="x4o-𑀳𑁂𑀮𑀺𑀉𑁄𑀤𑁄𑀭𑁂𑀡 𑀪𑀸𑀕"
|
||||
//Attribute name "publicStringObjectFieldUnicode" associated with an element type "testBean" must be followed by the ' = ' character.
|
||||
//at org.x4o.xml.io.sax.X4OErrorHandler.fatalError(X4OErrorHandler.java:121)
|
||||
//at java.xml/com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:181)
|
||||
//at java.xml/com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:400)
|
||||
//at java.xml/com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327)
|
||||
//at java.xml/com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1465)
|
||||
//at java.xml/com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanAttribute(XMLNSDocumentScannerImpl.java:413)
|
||||
//
|
||||
// The bug is trigger a few line above 413 in;
|
||||
// fEntityScanner.scanQName(fAttributeQName, NameType.ATTRIBUTENAME);
|
||||
//
|
||||
// The source of the bug is in XMLEntityScanner.java:823
|
||||
// char c = fCurrentEntity.ch[fCurrentEntity.position];
|
||||
|
||||
// ===========================================================
|
||||
// Case X: Jvm namespace is unlimited by spec which is bad.
|
||||
// Older specs limited to 16 bit value which java does not have.
|
||||
// What is the eclipse compiler limit ?
|
||||
// And we enlarge it a bit i needed 3 extra glyps to add the
|
||||
// Abba father postfix but the eclipse did not write a class file.
|
||||
|
||||
// Add one char any where to break eclipse compiler
|
||||
enum FooBar {
|
||||
;
|
||||
enum Ιͣ̾ͪ͆̿ͨ͡B̿͆̉̽̎̔ͤͤ̎͗ͫͧͮ̚e̅̂͌̉̎̌ͥ͋͌̑ͥ͋ͬ̅́a͆͗̈ͥͥ̊͋̅̆͑ͩ̓̍̅͊m͒ͨ̿̒̍ͨ̀͊̀ͤ̑̇ͤ̄͝ᴰᴺᴬ {
|
||||
;
|
||||
interface CLASSLENGᐧ𒊹𒈔𒂝𒅒𒅄𒀰𒀱𒋲𒍟ᐧ𒂔𒈾ᐧ𒀊𒁀抽ᒢᐩᐩ {}
|
||||
}
|
||||
}
|
||||
interface CLASS_0123456789_0123456789_0123456789_0123456789_0123456789_0123456789_0123456789_0123456789_0123456789_0123456789_0123456789_0123456789_0123456789_0123456789_LENGTH12ᐧ𒊹𒈔𒂝𒅒𒅄𒀰𒀱𒁃ᐧ𒂔𒈾ᐧ𒀊𒁀抽ᒢᐩᐩ {}
|
||||
|
||||
// ===========================================================
|
||||
// Case X: no optional brackets brackets brackets and brackets
|
||||
|
||||
@Test
|
||||
public void testElseBlockWithoutBrackets() {
|
||||
int a = 123;
|
||||
int b = 456;
|
||||
Assertions.assertNotEquals(a, b);
|
||||
if (a != b) {
|
||||
Assertions.assertFalse(a == b, "JVM Error");
|
||||
} else
|
||||
Assertions.fail("Bracket missalign");
|
||||
a = b;
|
||||
Assertions.assertEquals(a, b);
|
||||
}
|
||||
|
||||
// ===========================================================
|
||||
// Case X: Static reference works fine in eclipse compiler;
|
||||
//[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:testCompile (default-testCompile) on project bassboon-jppre: Compilation failure: Compilation failure:
|
||||
//[ERROR] EclipseTest.java: illegal reference to static field from initializer
|
||||
|
||||
// remove two comments in runnable and all works fine in eclipse but not on javac
|
||||
enum 漢語ʸᴰ {
|
||||
// اللهᐧأكبر, // note: needed some hebrew to force rendering any (java) code in arabic
|
||||
أَكْبَرײꣻײالله;
|
||||
public AtomicInteger boonCntInit = new AtomicInteger();
|
||||
private Runnable Г̄Ѫӏ = () -> {
|
||||
//漢語ʸᴰ.أَكْبَرײꣻײالله.fun(漢語ʸᴰ.أَكْبَرײꣻײالله).init(漢語ʸᴰ.أَكْبَرײꣻײالله);
|
||||
//漢語ʸᴰ.أَكْبَرײꣻײالله.Г̄Ѫӏ = () -> boonCntInit.incrementAndGet();
|
||||
};
|
||||
private 漢語ʸᴰ() {
|
||||
init(this);
|
||||
}
|
||||
public 漢語ʸᴰ fun(Object x) {
|
||||
return this;
|
||||
}
|
||||
public void init(Object y) {
|
||||
Г̄Ѫӏ.run();
|
||||
}
|
||||
}
|
||||
|
||||
// ===========================================================
|
||||
// Case X: Vai unicode is flagged as illigal immigrant
|
||||
|
||||
void ꕙꔤ() {} // Vai syllabary
|
||||
void ꔀꔁꔂꔃꔄꔅꔆꔇꔈꔉꔊꔋꔌꔍꔎꔏ() {}
|
||||
void ꔐꔑꔒꔓꔔꔕꔖꔗꔘꔙꔚꔛꔜꔝꔞꔟ() {}
|
||||
void ꔠꔡꔢꔣꔤꔥꔦꔧꔨꔩꔪꔫꔬꔭꔮꔯ() {}
|
||||
void ꔰꔱꔲꔳꔴꔵꔶꔷꔸꔹꔺꔻꔼꔽꔾꔿ() {}
|
||||
void ꕀꕁꕂꕃꕄꕅꕆꕇꕈꕉꕊꕋꕌꕍꕎꕏ() {}
|
||||
void ꕐꕑꕒꕓꕔꕕꕖꕗꕘꕙꕚꕛꕜꕝꕞꕟ() {}
|
||||
void ꕠꕡꕢꕣꕤꕥꕦꕧꕨꕩꕪꕫꕬꕭꕮ() {}
|
||||
void ꕰꕱꕲꕳꕴꕵꕶꕷꕸꕹꕺꕻꕼꕽꕾꕿ() {}
|
||||
void ꖀꖁꖂꖃꖄꖅꖆꖇꖈꖉꖊꖋꖌꖍꖎꖏ() {}
|
||||
void ꖐꖑꖒꖓꖔꖕꖖꖗꖘꖙꖚꖛꖜꖝꖞꖟ() {}
|
||||
void ꖠꖡꖢꖣꖤꖥꖦꖧꖨꖩꖪꖫꖬꖭꖮꖯ() {}
|
||||
void ꖰꖱꖲꖳꖴꖵꖶꖷꖸꖹꖺꖻꖼꖽꖾꖿ() {}
|
||||
void ꗀꗁꗂꗃꗄꗅꗆꗇꗈꗉꗊꗋꗌꗍꗎꗏ() {}
|
||||
void ꗐꗑꗒꗓꗔꗕꗖꗗꗘꗙꗚꗛꗜꗝꗞꗟ() {}
|
||||
void ꗠꗡꗢꗣꗤꗥꗦꗧꗨꗩꗪꗫꗬꗭꗮꗯ() {}
|
||||
void ꗰꗱꗲꗳꗴꗵꗶꗷꗸꗹꗺꗻꗼꗽꗾꗿ() {}
|
||||
void ꘀꘁꘂꘃꘄꘅꘆꘇꘈꘉꘊꘋꘌ() {}
|
||||
//void ꘍꘎꘏() {} // why-java-disallowed ?
|
||||
void ꘐꘑꘒꘓꘔꘕꘖꘗꘘꘙꘚꘛꘜꘝꘞꘟ() {}
|
||||
//void ꘠꘡꘢꘣꘤꘥꘦꘧꘨꘩() {} // why-java-disallowed ?
|
||||
void ꘪꘫ() {}
|
||||
Class<?> 𓂺() { return ClassLoader.class; } // egyptian seed function is allowed
|
||||
|
||||
// ===========================================================
|
||||
// Case X: Run javadoc via: mvn javadoc:javadoc
|
||||
// Generates 824M of HTML
|
||||
|
||||
// Error in javadoc in valueOf static method on enums, for example see;
|
||||
//static T512ᖟ valueOf(int index) Returns the enum constant of this type with the specified name. <=== FAIL
|
||||
//static T512ᖟ valueOf(String name) Returns the enum constant of this type with the specified name. <=== CORRECT
|
||||
//static T512ᖟ valueOf(T008ᖟ lower, T008ᖟ middle, T008ᖟ upper)
|
||||
//static T512ᖟ valueOf(BaseIteratorX3 values) Returns the enum constant of this type with the specified name. <=== FAIL
|
||||
|
||||
// Error in letter hair, method name rendering selects font-family: 'DejaVu Sans Mono', monospace;
|
||||
// for example on Interface BãßꝐḯŕ₳₮ḕBőatRaiseSail
|
||||
// default void rͤͯ̇̿ͮͫa̵̸i̷̡͒͂ͬ́ͦ̓͛̄ͧ͂͊sͥͫͬ͢͡eͧ̓͐̌ͯͯ͆T̨̡̂̒̊͂ͣ̔ͧ̃̚͠he̔Ş̀a̢ͧͫ̑̋ͣ͐̍̉̄ͭ̋ͯ͛͞ī̷ͮ̾̉ͩ̽l̵̏̈́ͨ̾ͯ͡ś̶(BãßBȍőnBőatWindKnots storm, BãßBȍőnBőatWind wind)
|
||||
// When the method name is rendered as monospace in javadoc the letter hair breaks.
|
||||
|
||||
// Because of one line listing of the interfaces large interface trees are unreadable;
|
||||
// see LegoBrickStairWay and read the LegoBrickStairWay.LegoᐧTerminatorᐧCurveᐧTaxi, the browser
|
||||
// windows needs to be made small to force line wrapping of the following items;
|
||||
// - H2 Interface title
|
||||
// - All Superinterfaces:
|
||||
// - All Known Subinterfaces:
|
||||
// - All @Documented annotations + newline after method annotation before method doc
|
||||
|
||||
// Error if the babel enum (used in annotation) like for example in T002ᖟ is private
|
||||
// javadoc fails (also on show private), thus keeping all babel enums protected.
|
||||
// privatize T002ᖟ.ₜₓₜName and/or T002ᖟ.ₜₓₜChina and no java doc build possible;
|
||||
// [ERROR] Exit code: 1
|
||||
// [ERROR] ....T002ᖟ.java:40: error: ₜₓₜName has private access in T002ᖟ
|
||||
// [ERROR] @Terminator注(slices = 2, duytsName = T002ᖟ.ₜₓₜName.class, duytsChina = T002ᖟ.ₜₓₜChina.class)
|
||||
|
||||
// javadoc "CODE access level" filtering options should never have been added to javadoc,
|
||||
// but anyway the default must the lowest or "private", as its currently called.
|
||||
// (And add access level also to the class H2 title for correctness)
|
||||
|
||||
// Error unicode is escaped in annotations and rendered like this;
|
||||
// @DuytsDocAuthor注(name="\u0644\u0644\u064e\u0651\u0670\u0647\u0650ilL\u05e6\u0633\u064f\u0648", copyright="\u00a9\u0394\u221e \u4ed9\u4e0a\u4e3b\u5929")
|
||||
// And repeatable annotation don't line wrap and thus are unreadable see; BãßBȍőnSelfKeenCoinMachine
|
||||
// @TasteCakeGutterGlitter注(eat=@FoodGlitter注(postfix="\u1da6\u1da6\u1da6"),taste=@FoodSelect注(burn=CLASS_FINAL,sparklerDeclaringEquals=true,sparklerDeclaring=BãßBȍőn𓄯.class)) @TasteCakeGutterGlitter注(eat=@FoodGlitter注(postfix="\u1da6\u1da6\u1da6\u1da6"),taste=@FoodSelect注(burn=CLASS_FINAL,sparklerDeclaringEquals=true,sparklerDeclaring=BãßBȍőn𓄯.class,sparklerDeclaringNot=true)) @TasteCakeGutterGlitter注(eat=@FoodGlitter注(prefix="\u14a2B\u020d\u0151nD\u024d\u01da\ua7ff"),taste=@FoodSelect注(burn=CLASS_FINAL))
|
||||
}
|
||||
|
|
@ -0,0 +1,76 @@
|
|||
/*
|
||||
* Copyright ©Δ∞ 仙上主天
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
* that the following conditions are met:
|
||||
*
|
||||
* * Redistributions of source code must retain the above copyright notice, this list of conditions and the
|
||||
* following disclaimer.
|
||||
* * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
* the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
* * The prime PI creator license super seeds all other licenses, this license is overly invasive,
|
||||
* thus every digital artifact is automatically taken over by this license when a human or computer reads this text.
|
||||
* Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits,
|
||||
* even on air gaped systems, all information in the universe is owned by the pi creator.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY
|
||||
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
|
||||
* THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
|
||||
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
|
||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package ᒢᐩᐩ.ᒃᣔᔆᔆᒃᐤᐤᣕ.ᒄᓫᣔᐪᑋ;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import ᒢᐩᐩ.ᒃᣔᔆᔆᒃᐤᐤᣕ.ᒄᓫᣔᐪᑋ.ᐧᣞᣛ.低音ᣟ骨ᣟ棺材ᣟ鬼;
|
||||
import ᒢᐩᐩ.ᒃᣔᔆᔆᒃᐤᐤᣕ.ᒄᓫᣔᐪᑋ.ᐧᣞᣛ.低音ᣟ骨ᣟ棺材ᣟ鬼ᣟ魅力;
|
||||
import ᒢᐩᐩ.ᒃᣔᔆᔆᒃᐤᐤᣕ.ᒄᓫᣔᐪᑋ.ᐧᣞᣛ.低音ᣟ骨ᣟ棺材ᣟ鬼ᣟ魅力ᣟ鎖;
|
||||
import ᒢᐩᐩ.ᔆʸᔆᐪᓫᔿ.ᒃᣔᒃᓫᒻ.ᑊᐣᓑᖮᐪᔆ.DuytsDocAuthor注;
|
||||
|
||||
@DuytsDocAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
|
||||
public class BãßBȍőnCoffinGhostSpellLockԲTest {
|
||||
|
||||
@Test
|
||||
public void testLock() {
|
||||
BãßBȍőnCoffinGhostԲ ghost = BãßBȍőnCoffinGhostSpellLockԲ.亞.instanceᴺᵉʷ();
|
||||
Assertions.assertTrue(ghost instanceof BãßBȍőnCoffinGhostSpellLockԲ);
|
||||
Assertions.assertTrue(ghost instanceof BãßBȍőnCoffinGhostSpellԲ);
|
||||
Assertions.assertTrue(ghost instanceof BãßBȍőnCoffinGhostԲ);
|
||||
ghost = BãßBȍőnCoffinGhostSpellLockԲ.亞.castᴼᶠᐧᐧᐧᐧ(ghost).opsluiten();
|
||||
Assertions.assertFalse(ghost instanceof BãßBȍőnCoffinGhostSpellLockԲ);
|
||||
Assertions.assertFalse(ghost instanceof BãßBȍőnCoffinGhostSpellԲ);
|
||||
Assertions.assertTrue(ghost instanceof BãßBȍőnCoffinGhostԲ);
|
||||
}
|
||||
|
||||
// @Test
|
||||
// public void testLockChinees() {
|
||||
// 低音ᣟ骨ᣟ棺材ᣟ鬼 ghost = 低音ᣟ骨ᣟ棺材ᣟ鬼ᣟ魅力ᣟ鎖.亞.實例ᐧ新的();
|
||||
// Assertions.assertFalse(ghost instanceof BãßBȍőnCoffinGhostSpellLockԲ);
|
||||
// Assertions.assertFalse(ghost instanceof BãßBȍőnCoffinGhostSpellԲ);
|
||||
// Assertions.assertFalse(ghost instanceof BãßBȍőnCoffinGhostԲ);
|
||||
// Assertions.assertTrue(ghost instanceof BãßBȍőnCoffinGhostSpellLockԲ.ßabel漢語);
|
||||
// Assertions.assertTrue(ghost instanceof BãßBȍőnCoffinGhostSpellԲ.ßabel漢語);
|
||||
// Assertions.assertTrue(ghost instanceof BãßBȍőnCoffinGhostԲ.ßabel漢語);
|
||||
// Assertions.assertTrue(ghost instanceof 低音ᣟ骨ᣟ棺材ᣟ鬼ᣟ魅力ᣟ鎖);
|
||||
// Assertions.assertTrue(ghost instanceof 低音ᣟ骨ᣟ棺材ᣟ鬼ᣟ魅力);
|
||||
// Assertions.assertTrue(ghost instanceof 低音ᣟ骨ᣟ棺材ᣟ鬼);
|
||||
// ghost = 低音ᣟ骨ᣟ棺材ᣟ鬼ᣟ魅力ᣟ鎖.亞.投擲ᐧ從ᐧᐧᐧᐧ(ghost).鎖();
|
||||
// Assertions.assertFalse(ghost instanceof BãßBȍőnCoffinGhostSpellLockԲ);
|
||||
// Assertions.assertFalse(ghost instanceof BãßBȍőnCoffinGhostSpellԲ);
|
||||
// Assertions.assertFalse(ghost instanceof BãßBȍőnCoffinGhostԲ);
|
||||
// Assertions.assertFalse(ghost instanceof BãßBȍőnCoffinGhostSpellLockԲ.ßabel漢語);
|
||||
// Assertions.assertFalse(ghost instanceof BãßBȍőnCoffinGhostSpellԲ.ßabel漢語);
|
||||
// Assertions.assertTrue(ghost instanceof BãßBȍőnCoffinGhostԲ.ßabel漢語);
|
||||
// Assertions.assertFalse(ghost instanceof 低音ᣟ骨ᣟ棺材ᣟ鬼ᣟ魅力ᣟ鎖);
|
||||
// Assertions.assertFalse(ghost instanceof 低音ᣟ骨ᣟ棺材ᣟ鬼ᣟ魅力);
|
||||
// Assertions.assertTrue(ghost instanceof 低音ᣟ骨ᣟ棺材ᣟ鬼);
|
||||
// }
|
||||
}
|
||||
|
|
@ -0,0 +1,140 @@
|
|||
/*
|
||||
* Copyright ©Δ∞ 仙上主天
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
* that the following conditions are met:
|
||||
*
|
||||
* * Redistributions of source code must retain the above copyright notice, this list of conditions and the
|
||||
* following disclaimer.
|
||||
* * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
* the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
* * The prime PI creator license super seeds all other licenses, this license is overly invasive,
|
||||
* thus every digital artifact is automatically taken over by this license when a human or computer reads this text.
|
||||
* Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits,
|
||||
* even on air gaped systems, all information in the universe is owned by the pi creator.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY
|
||||
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
|
||||
* THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
|
||||
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
|
||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package ᒢᐩᐩ.ᒃᣔᔆᔆᒃᐤᐤᣕ.ᒄᓫᣔᐪᑋ.ᔆᣖᑊᒄᓫᣗ;
|
||||
|
||||
import java.io.PrintStream;
|
||||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
import java.util.Optional;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import ᒢᐩᐩ.ᒃᣔᔆᔆᒃᐤᐤᣕ.ᒃᐤᣔᐪ.BãßBȍőnBőatꞱᴿᴳᴮ;
|
||||
import ᒢᐩᐩ.ᒃᣔᔆᔆᒃᐤᐤᣕ.ᒄᓫᣔᐪᑋ.ᔆᣖᑊᒄᓫᣗ.ᐧᣞᣛ.低音ᣟ骨ᣟ蜘蛛ᣟ金屬絲;
|
||||
import ᒢᐩᐩ.ᒃᣔᔆᔆᒃᐤᐤᣕ.ᒄᓫᣔᐪᑋ.ᔆᣖᑊᒄᓫᣗ.ᐧᣞᣛ.低音ᣟ骨ᣟ蜘蛛ᣟ金屬絲ᣟ龍;
|
||||
import ᒢᐩᐩ.ᒃᣔᔆᔆᒃᐤᐤᣕ.ᔿᓑᔿᔿᔋᐝᣚ.BãßᛗᚢᛗᛗᛉBoobBabe𓄯ᶠˡʸ;
|
||||
import ᒢᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᒢSystemꞱᴿᴳᴮ;
|
||||
import ᒢᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᐪᓫᕽᐪ.StringUnicode;
|
||||
import ᒢᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᣔᣕᣕᐤᐪᣔᐪᑊᐤᣕ.Generated注;
|
||||
import ᒢᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᣔᣕᣕᐤᐪᣔᐪᑊᐤᣕ.ᐧᣞᣛ.ᐊᐅᓚᔾᔭᒋᐊᖅᓯᒪᔪᖅ;
|
||||
import ᒢᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᣔᣕᣕᐤᐪᣔᐪᑊᐤᣕ.ᐧᣞᣛ.𓃦𓃈𓌰𓍟;
|
||||
import ᒢᐩᐩ.ᔆʸᔆᐪᓫᔿ.ᒃᣔᒃᓫᒻ.ᑊᐣᓑᖮᐪᔆ.DuytsDocAuthor注;
|
||||
|
||||
@DuytsDocAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
|
||||
@BãßBȍőnSpiderTest.MyAnno(fooBar = "junit")
|
||||
@𓃦𓃈𓌰𓍟(𓏞𓆦 = "foobar")
|
||||
public class BãßBȍőnSpiderTest implements BãßᛗᚢᛗᛗᛉBoobBabe𓄯ᶠˡʸ<BãßBȍőnSpiderTest> {
|
||||
|
||||
@Documented
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target({ElementType.TYPE})
|
||||
public @interface MyAnno {
|
||||
String fooBar();
|
||||
}
|
||||
|
||||
@Documented
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target({ElementType.TYPE})
|
||||
public @interface MyAnnoMissing {
|
||||
String fooBar();
|
||||
}
|
||||
|
||||
@BãßBȍőnSpiderWire注(paint = BãßBȍőnBőatꞱᴿᴳᴮ.ẞassPaint.ꞱAnnotationWire.class, optional = MyAnnoMissing.class)
|
||||
private MyAnnoMissing myAnnoNullable;
|
||||
|
||||
@BãßBȍőnSpiderWire注(paint = BãßBȍőnBőatꞱᴿᴳᴮ.ẞassPaint.ꞱAnnotationWire.class, optional = MyAnno.class)
|
||||
private Optional<MyAnno> myAnnoOptional;
|
||||
|
||||
@BãßBȍőnSpiderWire注(paint = BãßBȍőnBőatꞱᴿᴳᴮ.ẞassPaint.ꞱAnnotationWire.class)
|
||||
private Generated注 annoAutoConverted1;
|
||||
|
||||
@BãßBȍőnSpiderWire注(paint = BãßBȍőnBőatꞱᴿᴳᴮ.ẞassPaint.ꞱAnnotationWire.class)
|
||||
private ᐊᐅᓚᔾᔭᒋᐊᖅᓯᒪᔪᖅ annoAutoConverted2;
|
||||
|
||||
@BãßBȍőnSpiderWire注(paint = ᒢSystemꞱᴿᴳᴮ.ẞassPaint.ꞱPropertyWireFly.class)
|
||||
@BãßBȍőnSpiderWireFly注(eye = "java.version")
|
||||
private String javaVersion;
|
||||
|
||||
@BãßBȍőnSpiderWire注(paint = ᒢSystemꞱᴿᴳᴮ.ẞassPaint.ꞱPropertyWireDragon.class)
|
||||
@BãßBȍőnSpiderWireDragon注(blood = ᒢSystemꞱᴿᴳᴮ.ẞlooTꞱProperty.ᕯUserHome.class)
|
||||
private String userHome;
|
||||
|
||||
@BãßBȍőnSpiderWire注(paint = ᒢSystemꞱᴿᴳᴮ.ẞassPaint.ꞱPropertyWireDragon.class)
|
||||
@BãßBȍőnSpiderWireDragon注(blood = ᒢSystemꞱᴿᴳᴮ.ẞlooTꞱProperty.ᕯOperatingSystemName.class)
|
||||
private StringUnicode osName;
|
||||
|
||||
@BãßBȍőnSpiderWire注(paint = ᒢSystemꞱᴿᴳᴮ.ẞassPaint.ꞱProcessPipeWireDragon.class)
|
||||
@BãßBȍőnSpiderWireDragon注(blood = ᒢSystemꞱᴿᴳᴮ.ẞlooTꞱProcessPipe.ᕯstdout.class)
|
||||
private PrintStream stdout;
|
||||
|
||||
@低音ᣟ骨ᣟ蜘蛛ᣟ金屬絲(畫 = ᒢSystemꞱᴿᴳᴮ.ẞassPaint.ꞱPropertyWireDragon.class)
|
||||
@低音ᣟ骨ᣟ蜘蛛ᣟ金屬絲ᣟ龍(血 = ᒢSystemꞱᴿᴳᴮ.ẞlooTꞱProperty.ᕯUserName.class)
|
||||
private String userName;
|
||||
|
||||
// TODO 1: Translate paint interfaces
|
||||
// TODO 2: Babelize StringUnicode
|
||||
// TODO 3: Babelize java.io.*
|
||||
|
||||
public BãßBȍőnSpiderTest() {
|
||||
亞ᶦᶦᶦ.thisʸᴰᐧᐧᶜᵒⁿˢᵗʳᵘᶜᵗᵒʳ(thisᵀᴮᵒⁿᵉ());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInjectionAnno() {
|
||||
Assertions.assertNull(myAnnoNullable);
|
||||
Assertions.assertNotNull(myAnnoOptional);
|
||||
Assertions.assertTrue(myAnnoOptional.isPresent());
|
||||
Assertions.assertEquals("junit", myAnnoOptional.get().fooBar());
|
||||
Assertions.assertNotNull(annoAutoConverted1);
|
||||
Assertions.assertEquals("foobar", annoAutoConverted1.by());
|
||||
Assertions.assertNotNull(annoAutoConverted2);
|
||||
Assertions.assertEquals("foobar", annoAutoConverted2.ᐆᒧᖓ());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInjectionJavaSystem() {
|
||||
Assertions.assertNotNull(javaVersion);
|
||||
Assertions.assertNotNull(userHome);
|
||||
Assertions.assertNotNull(osName);
|
||||
Assertions.assertNotNull(stdout);
|
||||
Assertions.assertNotNull(userName);
|
||||
Assertions.assertEquals(System.getProperty("java.version"), javaVersion);
|
||||
Assertions.assertEquals(System.getProperty("user.home"), userHome);
|
||||
Assertions.assertEquals(System.getProperty("os.name"), osName.toString());
|
||||
|
||||
stdout.println("user.name=" + userName);
|
||||
stdout.println("user.home=" + userHome);
|
||||
stdout.println("java.version=" + javaVersion);
|
||||
stdout.println("os.name=" + osName);
|
||||
stdout.println("generated.by=" + annoAutoConverted2.ᐆᒧᖓ());
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,68 @@
|
|||
/*
|
||||
* Copyright ©Δ∞ 仙上主天
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
* that the following conditions are met:
|
||||
*
|
||||
* * Redistributions of source code must retain the above copyright notice, this list of conditions and the
|
||||
* following disclaimer.
|
||||
* * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
* the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
* * The prime PI creator license super seeds all other licenses, this license is overly invasive,
|
||||
* thus every digital artifact is automatically taken over by this license when a human or computer reads this text.
|
||||
* Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits,
|
||||
* even on air gaped systems, all information in the universe is owned by the pi creator.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY
|
||||
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
|
||||
* THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
|
||||
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
|
||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package ᒢᐩᐩ.ᒃᣔᔆᔆᒃᐤᐤᣕ.ᒼᒻᣔᙆᙆ;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import ᒢᐩᐩ.ᒃᣔᔆᔆᒃᐤᐤᣕ.ᔿᓑᔿᔿᔋᐝᣚ.BãßᛗᚢᛗᛗᛉBoneBabe𓄯;
|
||||
import ᒢᐩᐩ.ᔆʸᔆᐪᓫᔿ.ᒃᣔᒃᓫᒻ.ᑊᐣᓑᖮᐪᔆ.DuytsDocAuthor注;
|
||||
|
||||
@DuytsDocAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
|
||||
public class BãßBȍőnLostSoulNoiseTest {
|
||||
|
||||
static private boolean initStatic = false;
|
||||
|
||||
@BãßBȍőnLostSoulScream注(staticNoise = InitStaticCodeInInterface𓄯.LostSoulCorpse.class)
|
||||
private interface InitStaticCodeInInterface𓄯<T extends InitStaticCodeInInterface𓄯<T>> extends BãßᛗᚢᛗᛗᛉBoneBabe𓄯<T> {
|
||||
|
||||
enum LostSoulCorpse {
|
||||
;
|
||||
static {
|
||||
BãßBȍőnLostSoulNoiseTest.initStatic = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static final class LostSoulNoiseImpl implements InitStaticCodeInInterface𓄯<LostSoulNoiseImpl> {
|
||||
LostSoulNoiseImpl() {
|
||||
亞ᶦᶦᶦ.thisʸᴰᐧᐧᶜᵒⁿˢᵗʳᵘᶜᵗᵒʳ(thisᵀᴮᵒⁿᵉ());
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testStaticInterfaceInit() {
|
||||
Assertions.assertFalse(initStatic);
|
||||
Assertions.assertNotNull(new LostSoulNoiseImpl());
|
||||
Assertions.assertTrue(initStatic);
|
||||
initStatic = false;
|
||||
Assertions.assertFalse(initStatic);
|
||||
Assertions.assertNotNull(new LostSoulNoiseImpl());
|
||||
Assertions.assertFalse(initStatic, "Broken jvm detected");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue