tests/testthat/test_japanese_api.R

# Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate

context("Test JapaneseApi")

api.instance <- JapaneseApi$new()

test_that("GenderJapaneseNameFull", {
  # tests for GenderJapaneseNameFull
  # base path: https://v2.namsor.com/NamSorAPIv2
  # Infer the likely gender of a Japanese full name ex. 王晓明
  # @param character  japanese.name   
  # @return [PersonalNameGenderedOut]

  # uncomment below to test the operation
  #expect_equal(result, "EXPECTED_RESULT")
})

test_that("GenderJapaneseNameFullBatch", {
  # tests for GenderJapaneseNameFullBatch
  # base path: https://v2.namsor.com/NamSorAPIv2
  # Infer the likely gender of up to 100 full names
  # @param BatchPersonalNameIn  batch.personal.name.in  A list of personal names  (optional)
  # @return [BatchPersonalNameGenderedOut]

  # uncomment below to test the operation
  #expect_equal(result, "EXPECTED_RESULT")
})

test_that("GenderJapaneseNamePinyin", {
  # tests for GenderJapaneseNamePinyin
  # base path: https://v2.namsor.com/NamSorAPIv2
  # Infer the likely gender of a Japanese name in LATIN (Pinyin).
  # @param character  japanese.surname   
  # @param character  japanese.given.name   
  # @return [FirstLastNameGenderedOut]

  # uncomment below to test the operation
  #expect_equal(result, "EXPECTED_RESULT")
})

test_that("GenderJapaneseNamePinyinBatch", {
  # tests for GenderJapaneseNamePinyinBatch
  # base path: https://v2.namsor.com/NamSorAPIv2
  # Infer the likely gender of up to 100 Japanese names in LATIN (Pinyin).
  # @param BatchFirstLastNameIn  batch.first.last.name.in  A list of names, with country code.  (optional)
  # @return [BatchFirstLastNameGenderedOut]

  # uncomment below to test the operation
  #expect_equal(result, "EXPECTED_RESULT")
})

test_that("JapaneseNameKanjiCandidates", {
  # tests for JapaneseNameKanjiCandidates
  # base path: https://v2.namsor.com/NamSorAPIv2
  # Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae
  # @param character  japanese.surname.latin   
  # @param character  japanese.given.name.latin   
  # @return [RomanizedNameOut]

  # uncomment below to test the operation
  #expect_equal(result, "EXPECTED_RESULT")
})

test_that("JapaneseNameKanjiCandidatesBatch", {
  # tests for JapaneseNameKanjiCandidatesBatch
  # base path: https://v2.namsor.com/NamSorAPIv2
  # Identify japanese name candidates in KANJI, based on the romanized name (firstName &#x3D; japaneseGivenName; lastName&#x3D;japaneseSurname), ex. Yamamoto Sanae
  # @param BatchFirstLastNameIn  batch.first.last.name.in  A list of personal japanese names in LATIN, firstName = japaneseGivenName; lastName=japaneseSurname  (optional)
  # @return [BatchNameMatchCandidatesOut]

  # uncomment below to test the operation
  #expect_equal(result, "EXPECTED_RESULT")
})

test_that("JapaneseNameLatinCandidates", {
  # tests for JapaneseNameLatinCandidates
  # base path: https://v2.namsor.com/NamSorAPIv2
  # Romanize japanese name, based on the name in Kanji.
  # @param character  japanese.surname.kanji   
  # @param character  japanese.given.name.kanji   
  # @return [RomanizedNameOut]

  # uncomment below to test the operation
  #expect_equal(result, "EXPECTED_RESULT")
})

test_that("JapaneseNameLatinCandidatesBatch", {
  # tests for JapaneseNameLatinCandidatesBatch
  # base path: https://v2.namsor.com/NamSorAPIv2
  # Romanize japanese names, based on the name in KANJI
  # @param BatchFirstLastNameIn  batch.first.last.name.in  A list of personal japanese names in KANJI, firstName = japaneseGivenName; lastName=japaneseSurname  (optional)
  # @return [BatchNameMatchCandidatesOut]

  # uncomment below to test the operation
  #expect_equal(result, "EXPECTED_RESULT")
})

test_that("JapaneseNameMatch", {
  # tests for JapaneseNameMatch
  # base path: https://v2.namsor.com/NamSorAPIv2
  # Return a score for matching Japanese name in KANJI ex. 山本 早苗 with a romanized name ex. Yamamoto Sanae
  # @param character  japanese.surname.latin   
  # @param character  japanese.given.name.latin   
  # @param character  japanese.name   
  # @return [RomanizedNameOut]

  # uncomment below to test the operation
  #expect_equal(result, "EXPECTED_RESULT")
})

test_that("JapaneseNameMatchBatch", {
  # tests for JapaneseNameMatchBatch
  # base path: https://v2.namsor.com/NamSorAPIv2
  # Return a score for matching a list of Japanese names in KANJI ex. 山本 早苗 with romanized names ex. Yamamoto Sanae
  # @param BatchFirstLastNameIn  batch.first.last.name.in  A list of personal Japanese names in LATIN, firstName = japaneseGivenName; lastName=japaneseSurname  (optional)
  # @return [BatchNameMatchCandidatesOut]

  # uncomment below to test the operation
  #expect_equal(result, "EXPECTED_RESULT")
})

test_that("JapaneseNameMatchFeedbackLoop", {
  # tests for JapaneseNameMatchFeedbackLoop
  # base path: https://v2.namsor.com/NamSorAPIv2
  # [CREDITS 1 UNIT] Feedback loop to better perform matching Japanese name in KANJI ex. 山本 早苗 with a romanized name ex. Yamamoto Sanae
  # @param character  japanese.surname.latin   
  # @param character  japanese.given.name.latin   
  # @param character  japanese.name   
  # @return [RomanizedNameOut]

  # uncomment below to test the operation
  #expect_equal(result, "EXPECTED_RESULT")
})

test_that("ParseJapaneseName", {
  # tests for ParseJapaneseName
  # base path: https://v2.namsor.com/NamSorAPIv2
  # Infer the likely first/last name structure of a name, ex. 山本 早苗 or Yamamoto Sanae
  # @param character  japanese.name   
  # @return [PersonalNameParsedOut]

  # uncomment below to test the operation
  #expect_equal(result, "EXPECTED_RESULT")
})

test_that("ParseJapaneseNameBatch", {
  # tests for ParseJapaneseNameBatch
  # base path: https://v2.namsor.com/NamSorAPIv2
  # Infer the likely first/last name structure of a name, ex. 山本 早苗 or Yamamoto Sanae 
  # @param BatchPersonalNameIn  batch.personal.name.in  A list of personal names  (optional)
  # @return [BatchPersonalNameParsedOut]

  # uncomment below to test the operation
  #expect_equal(result, "EXPECTED_RESULT")
})
namsor/namsor-r-sdk2 documentation built on March 15, 2021, 7:12 p.m.